コード例 #1
0
 private void ChannelDisconnecting(IChannel channel, ShutdownReason shutdownReason)
 {
     _letterDispatcher.DequeueChannel(channel);
     Disconnecting?.Invoke(this, new DisconnectingEventArgs {
         Binding = channel.Binding, Reason = shutdownReason, RemoteNodeId = channel.RemoteNodeId, Socket = this
     });
 }
コード例 #2
0
ファイル: HyperSocket.cs プロジェクト: zuiwanting/Hyperletter
        private void ChannelDisconnecting(IChannel channel, ShutdownReason shutdownReason)
        {
            _letterDispatcher.DequeueChannel(channel);
            Action <IHyperSocket, IDisconnectingEventArgs> evnt = Disconnecting;

            if (evnt != null)
            {
                evnt(this, new DisconnectingEventArgs {
                    Binding = channel.Binding, Reason = shutdownReason, RemoteNodeId = channel.RemoteNodeId, Socket = this
                });
            }
        }