Renci.SshNet.Channels.ClientChannel.UnsubscribeFromSessionEvents C# (CSharp) Method

UnsubscribeFromSessionEvents() private method

Unsubscribes the current ClientChannel from session events.
Does nothing when session is null.
private UnsubscribeFromSessionEvents ( ISession session ) : void
session ISession The session.
return void
        private void UnsubscribeFromSessionEvents(ISession session)
        {
            if (session == null)
                return;

            session.ChannelOpenConfirmationReceived -= OnChannelOpenConfirmation;
            session.ChannelOpenFailureReceived -= OnChannelOpenFailure;
        }
    }