duplex

How to handle WCF exceptions (consolidated list with code)

我的未来我决定 提交于 2019-11-26 15:06:28
问题 I'm attempting to extend this answer on SO to make a WCF client retry on transient network failures and handle other situations that require a retry such as authentication expiration. Question: What are the WCF exceptions that need to be handled, and what is the correct way to handle them? Here are a few sample techniques that I'm hoping to see instead of or in addition to proxy.abort() : Delay X seconds prior to retry Close and recreate a New() WCF client. Dispose the old one. Don't retry