I have CUSTOM azure hybrid connection listener service running on premise with below mention code as MSDN suggested, but listener not getting reestablished when on premise INTERNET connectivity get disrupted.
Only 1 out of 10 times, listener getting reestablished with below code, when on premise INTERNET is disrupted
// Opening the listener establishes the control channel to
// the Azure Relay service. The control channel is continuously
// maintained, and is reestablished when connectivity is disrupted
await listener.OpenAsync(cts.Token);
//Below delegate not getting called when INTERNET plugged off from
//listener running machine
listener.Offline += listener_Offline;
What changes required to reestablish listener to azure hybrid connection 10 out of 10 times?. Please advice.