hello,
I am using a azure serviceBus relay and need to detect when this has failed or disconnected.
My server is using the NetTcpRelayBinding in mostly the default settings and successfully registering on azure. Clients are able to connect to the service and everything works without issues. Clients generally connect rarely and generally there is nothing connected on the server most of the time.
The problem I am having, is that the server hosting the wcf might lose internet connection for long periods (hours). After sometime the relay on azure will disappear. When the internet is re-established the relay does not re-appear on azure and clients can no longer connect to this server.
On the sever - there does not appear to be way to detect this failure? The ServiceHost object continues to show that it's state is Opened and no faulted event appears to be called.
Is there a way to detect this failure from the serviceHost object? Or a way to get the ServieHost to re-establish the relay automatically?
The server is using SAS with listen only permissions, so I am not able to create a client connection from the server to test the client connectivity.
Thanks
matvdl