I have two Windows C.NET applications that communicate with each other through WCF called pipe. One application has a WCF service and the other a client. Communication is working fine, the client can call service methods, and callbacks are working fine, etc. However, one of the problems that I have is that the host application is disconnected, the client cannot detect that this channel is no longer available. I tried to register event handlers in the pipe for all events (Close, Close, Fault), but they are never called when the host application terminates. In addition, if I try to check the status of the pipeline in the client with the pipe.State property, I will return to the Open state, even if this channel is faulty. Then, of course, this throws an exception if I try to call the service method.I need my client application to either be notified that the service is shutting down, shutting down, or erroneous, or I need to detect it before I call each method of the service.
Does anyone have working examples of this scenario?
user182728
source
share