WCF - have client check for service availability [duplicate]
问题 This question already has answers here : check the availability of the WCF Web Service (4 answers) Closed 5 years ago . I have a client-server system, both sides written by me, and I would like to put the clients in an 'offline' state when the server disconnects/dies, and then automatically bring them back 'online' when the server is available again. For the first part, I listen for channel faulted events and handle that by setting the client to offline. I then start calling a 'ping' service