protected void ProcessMsgUserAuthRequestNone(SshStreamReader msgReader)
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException(this.GetType().FullName);
            }

            // Raise event to get result of auth attempt.
            var authUserEventArgs = new AuthUserNoMethodEventArgs(_lastUserName);

            if (AuthenticateUserNoMethod != null)
            {
                AuthenticateUserNoMethod(this, authUserEventArgs);
            }

            // Check result of auth attempt.
            switch (authUserEventArgs.Result)
            {
            case AuthenticationResult.Success:
                // Auth has succeeded.
                AuthenticateUser(_lastServiceName);

                break;

            case AuthenticationResult.Failure:
                // Send list of supported auth methods.
                SendMsgUserAuthFailure(false);

                break;
            }
        }
        protected void ProcessMsgUserAuthRequestNone(SshStreamReader msgReader)
        {
            if (_isDisposed) throw new ObjectDisposedException(this.GetType().FullName);

            // Raise event to get result of auth attempt.
            var authUserEventArgs = new AuthUserNoMethodEventArgs(_lastUserName);

            if (AuthenticateUserNoMethod != null) AuthenticateUserNoMethod(this, authUserEventArgs);

            // Check result of auth attempt.
            switch (authUserEventArgs.Result)
            {
                case AuthenticationResult.Success:
                    // Auth has succeeded.
                    AuthenticateUser(_lastServiceName);

                    break;
                case AuthenticationResult.Failure:
                    // Send list of supported auth methods.
                    SendMsgUserAuthFailure(false);

                    break;
            }
        }