Q:

how to initialize static class at service level in wcf

I have singleton Log framework, can you suggest how to initialize this at service level. I have to attach event handlers as part of initialization. 
When I had initialized in Service class it is getting executed(handlers added) for each client call and therefore log table getting updated with multiple times with same records. Thanks..

A:

If you want to control how a service instance gets initialized, you'll need to implement a custom service host. This MSDN article should give a good start. The idea is to put the Log framework initialization in the service host so it only occurs once and then have it injected into each service instance.

