Renci.SshNet.SshCommand.Session_Disconnected C# (CSharp) Method

Session_Disconnected() private method

private Session_Disconnected ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void Session_Disconnected(object sender, EventArgs e)
        {
            //  If objected is disposed or being disposed don't handle this event
            if (_isDisposed)
                return;

            _exception = new SshConnectionException("An established connection was aborted by the software in your host machine.", DisconnectReason.ConnectionLost);

            _sessionErrorOccuredWaitHandle.Set();
        }