singleton - how to initialize static class at service level in wcf -


i have singleton log framework, can suggest how initialize @ service level. have attach event handlers part of initialization.

when had initialized in service class getting executed(handlers added) each client call , therefore log table getting updated multiple times same records. thanks..

if want control how service instance gets initialized, you'll need implement custom service host. msdn article should give start. idea put log framework initialization in service host occurs once , have injected each service instance.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -