WCF: How to detect new connections to WCF PerSession services ?
- by Christian Toma
I have a self-hosted WCF service with the InstanceContextMode set to PerSession.
How can I detect new client connections (sessions) to my service from the host application and use that new session context to observe my service trough its events?
Something like:
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
public class…