I have a WCF application that uses sessions.
Is there any central event that needs to be reset when the session ends? How can I find out when the session WITHOUT (!) The method call ends (the network is disconnected, the client crashes - therefore the call to the "logout" method is not performed)?
The server is hosted as:
[ServiceBehavior(
InstanceContextMode = InstanceContextMode.PerSession,
ConcurrencyMode = ConcurrencyMode.Reentrant,
UseSynchronizationContext = false,
IncludeExceptionDetailInFaults = true
)]
Mostly because it uses a callback interface.
Now I basically need to undo the instance created from the backend store when the session ends;)
Any ideas?
source
share