How can I handle WCF Client Disconnects ?
I Tried CallBacks but it seems to only works when Client Disconnect "clearly" by using a "Disconnect" button for example.
I want my server to be notified when Client got disconnected, even on manual disconnect or client process crash.
Use the OperationContext.Current.Channel.Faulted and OperationContext.Current.Channel.Closed events.
These events are fired when the client has disconnected for whatever reason.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With