[英]How to detect Connection Lost from WCF Service in client app
How do I get a Lost Connection Exception from WCF in a client application. 如何在客户端应用程序中从WCF获取丢失的连接异常。
At the time of the Fault, the exception in my Locals windows i get a $exception, but i can't use that exception. 在发生故障时,我在本地窗口中的异常得到$ exception,但是我不能使用该异常。
If using WPF try to handle the AppDomain.CurrentDomain.FirstChanceException . 如果使用WPF,请尝试处理AppDomain.CurrentDomain.FirstChanceException 。 You can check the type of exception from EventArgs, and create your logic there.
您可以从EventArgs检查异常的类型,然后在其中创建逻辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.