Detecting Client Death in WCF Duplex Contracts
问题 I'm trying to build a SOA where clients can perform long running queries on the server and the server responds using a callback. I'd like to be able to detect if the client disconnects (through user initiated shutdown, unhandled exception or loss of network connectivity) so that the server can choose to cancel the expensive request. I'm testing a variety of failure cases but I can't seem to get certain event handlers to fire. Tested Failure Cases: Killing the Client Process After the request.