Based on the documentation and articles, it is recommended to call Abort () on the client proxy if an unexpected exception / error occurs. See the following (simplified):
MyServiceClient proxy = null;
try {
proxy = new MyServiceClient();
proxy.DoSomething();
proxy.Close();
} catch (Exception ex) {
if (proxy != null)
proxy.Abort();
}
Is it possible to call Abort () throwing the exception itself? Should the call to Abort () be within its own attempt / catch?
source
share