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 }); }
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 }); } }