Search Results for

    Class AMNetSessionListener

    Default session listener that logs SSH session lifecycle events.

    Inheritance
    object
    AMNetSessionListener
    Implements
    IAMNetSessionListener
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
    Assembly: ApacheMinaSSHD.NET.Wrapper.dll
    Syntax
    public class AMNetSessionListener : IAMNetSessionListener

    Constructors

    | Edit this page View Source

    AMNetSessionListener()

    Creates a session listener using the default logger.

    Declaration
    public AMNetSessionListener()
    | Edit this page View Source

    AMNetSessionListener(IAMNetLogger)

    Creates a session listener using the supplied logger.

    Declaration
    public AMNetSessionListener(IAMNetLogger logger)
    Parameters
    Type Name Description
    IAMNetLogger logger

    The logger used by the default event handlers.

    Methods

    | Edit this page View Source

    OnSessionClosed(ISshSession)

    Called when the SSH session is closed.

    Declaration
    public virtual void OnSessionClosed(ISshSession session)
    Parameters
    Type Name Description
    ISshSession session

    The session metadata.

    | Edit this page View Source

    OnSessionCreated(ISshSession)

    Called when a session object is created.

    Declaration
    public virtual void OnSessionCreated(ISshSession session)
    Parameters
    Type Name Description
    ISshSession session

    The session metadata.

    | Edit this page View Source

    OnSessionDisconnect(ISshSessionEvent)

    Called when a session disconnect message is observed.

    Declaration
    public virtual void OnSessionDisconnect(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The disconnect event metadata.

    | Edit this page View Source

    OnSessionEstablished(ISshSession)

    Called when the SSH session is established.

    Declaration
    public virtual void OnSessionEstablished(ISshSession session)
    Parameters
    Type Name Description
    ISshSession session

    The session metadata.

    | Edit this page View Source

    OnSessionEvent(ISshSessionEvent)

    Called for a generic session event.

    Declaration
    public virtual void OnSessionEvent(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The session event metadata.

    | Edit this page View Source

    OnSessionException(ISshSessionEvent)

    Called when an exception is raised for the session.

    Declaration
    public virtual void OnSessionException(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The session event metadata and exception.

    | Edit this page View Source

    OnSessionNegotiationEnd(ISshSessionEvent)

    Called when key exchange or algorithm negotiation ends.

    Declaration
    public virtual void OnSessionNegotiationEnd(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The negotiation event metadata.

    | Edit this page View Source

    OnSessionNegotiationOptionsCreated(ISshSessionEvent)

    Called after negotiation options are created.

    Declaration
    public virtual void OnSessionNegotiationOptionsCreated(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The negotiation options metadata.

    | Edit this page View Source

    OnSessionNegotiationStart(ISshSessionEvent)

    Called when key exchange or algorithm negotiation starts.

    Declaration
    public virtual void OnSessionNegotiationStart(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The negotiation event metadata.

    | Edit this page View Source

    OnSessionPeerIdentificationLine(ISshSessionEvent)

    Called when a peer identification line is read.

    Declaration
    public virtual void OnSessionPeerIdentificationLine(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The peer identification metadata.

    | Edit this page View Source

    OnSessionPeerIdentificationReceived(ISshSessionEvent)

    Called when the peer identification string is received.

    Declaration
    public virtual void OnSessionPeerIdentificationReceived(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The peer identification metadata.

    | Edit this page View Source

    OnSessionPeerIdentificationSend(ISshSessionEvent)

    Called when the server sends its peer identification string.

    Declaration
    public virtual void OnSessionPeerIdentificationSend(ISshSessionEvent context)
    Parameters
    Type Name Description
    ISshSessionEvent context

    The peer identification metadata.

    Implements

    IAMNetSessionListener
    • Edit this page
    • View Source
    In this article
    Back to top Porta SFTP ServerGitHubApacheMinaSSHD.NET Generated by DocFX