コード例 #1
0
ファイル: TcpConnection.cs プロジェクト: lulzzz/virtualrtu-1
        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();
        }
コード例 #2
0
 public void Delay()
 {
     delayPolicy.Delay();
 }