Is there a way in a WCF service to catch a client timeout I need to run some special logic on a client timeout.
I have not found any sources indicating a WCF service can check if a client timeout through service side Error Handling, Etc… if you require more information let me know.
Anything that needs to be cleaned up in your service, should be cleaned up regardless of whether there was a client timeout, a client disconnection, or an exception in the service.
Do your cleanup in the
finallyblock of atry/finally, or, if you clean up by calling theDisposemethod of anIDisposableobject, then useusingblocks.