views:

27

answers:

1

Hi all,

Is there anyway of getting the number of active instance of the service I've tried adding a static int counter in the constructor and this works and implemented Idisposable to decrement the counter on the service but the dispose method only gets called when the service host closes?

Is there any native object i can get and see the current instance count?

Any ideas?

Thanks

+1  A: 

Check out a gazillion of performance counters available for WCF:

or google or bing for "WCF performance counters" - lots of hits.

Also, with Server 2008 R2 "AppFabric" (f.k.a. "Dublin"), Microsoft promises to bring us a really nice dashboard-style WCF management system - should be out in a few months at the very latest: http://www.microsoft.com/windowsserver2008/en/us/app-main.aspx

marc_s