views:

12

answers:

0

I am trying to come up with some tactics for hooking the connection event whenever an instance is created in my WCF server.

I decorated my class like this: [ServiceBehavior( InstanceContextMode = InstanceContextMode.PerCall , ConcurrencyMode = ConcurrencyMode.Multiple , Namespace="http://mystuff/test" )]

So I was wondering if there was a way to fire an (async) event so I could do something each time the instance is used, since I am making a new one per call.

Also, my host is a console app, it just creates an endpoint in code and instances this class per call. Am I going to run into potential threading problems (expecting ~3 simultaneous calls per second)?