private async void Channel_OnClose(object sender, ChannelCloseEventArgs e) { logger?.LogWarning($"TCP channel '{e.ChannelId}' closing."); try { channel.Dispose(); channel = null; } catch (Exception ex) { logger?.LogError(ex, $"TCP channel fault attempt closed and dispose."); } policy.Delay(); await OpenAsync(); }
public void Delay() { delayPolicy.Delay(); }