Question

Is it possible to gather performance statistics programmatically from inside a WCF application? For example, the number of connections open or requests received.

Was it helpful?

Solution

Look into WCF Performance Counters. You can query performance counters using the respective .NET Framework Classes.

Also, you could enable WMI for your WCF Services and query this information from inside your application.

Probably depends on the kind of information you need to get.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top