Renci.SshNet.Shell.UnsubscribeFromSessionEvents C# (CSharp) 메소드

UnsubscribeFromSessionEvents() 개인적인 메소드

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

            session.Disconnected -= Session_Disconnected;
            session.ErrorOccured -= Session_ErrorOccured;
        }