简体   繁体   中英

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.

At the time of the Fault, the exception in my Locals windows i get a $exception, but i can't use that exception.

If using WPF try to handle the AppDomain.CurrentDomain.FirstChanceException . You can check the type of exception from EventArgs, and create your logic there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM