I have encountered a very interesting behavior of reliable session. I am using netTcp binding + duplex channel + reliable session.
Just trying to get my head around what can happen when things go wrong with WCF. I have an implementation of my service contract declared with an InstanceContextMode of PerSession...
In my WCF client class I\'m handling the Faulted() event so that if the remote service throws an exception and faults the channel I can still at least shut it down gracefully. Here\'s my code:
When a single ClientBase<T> instance is used for multiple WCF service calls, it can get a channel into a faulted state (ie. when the service is down).