Search Results for

    Class AMNetSftpEventListener

    Default SFTP event listener that logs SFTP lifecycle and file operation events.

    Inheritance
    object
    AMNetSftpEventListener
    Implements
    IAMNetSftpEventListener
    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 AMNetSftpEventListener : IAMNetSftpEventListener

    Constructors

    | Edit this page View Source

    AMNetSftpEventListener()

    Creates a default SFTP event listener.

    Declaration
    public AMNetSftpEventListener()

    Methods

    | Edit this page View Source

    OnClosed(ISshEvent)

    Called after a handle is closed.

    Declaration
    public virtual void OnClosed(ISshEvent ctx)
    Parameters
    Type Name Description
    ISshEvent ctx

    The handle event metadata.

    | Edit this page View Source

    OnClosing(ISshEvent)

    Called before a handle is closed.

    Declaration
    public virtual void OnClosing(ISshEvent ctx)
    Parameters
    Type Name Description
    ISshEvent ctx

    The handle event metadata.

    | Edit this page View Source

    OnCreated(ISshPath)

    Called after a path is created.

    Declaration
    public virtual void OnCreated(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnCreating(ISshPath)

    Called before a path is created.

    Declaration
    public virtual void OnCreating(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnDestroying(ISshSession)

    Called when the SFTP subsystem is being destroyed for a session.

    Declaration
    public virtual void OnDestroying(ISshSession sshSession)
    Parameters
    Type Name Description
    ISshSession sshSession

    The session metadata.

    | Edit this page View Source

    OnExiting(ISshSession, ISshHandle)

    Called when an SFTP handle exits.

    Declaration
    public virtual void OnExiting(ISshSession sshSession, ISshHandle sshHandle)
    Parameters
    Type Name Description
    ISshSession sshSession

    The session metadata.

    ISshHandle sshHandle

    The handle metadata.

    | Edit this page View Source

    OnInitialized(ISshSession, int)

    Called when the SFTP subsystem is initialized for a session.

    Declaration
    public virtual void OnInitialized(ISshSession sshSession, int version)
    Parameters
    Type Name Description
    ISshSession sshSession

    The session metadata.

    int version

    The negotiated SFTP protocol version.

    | Edit this page View Source

    OnLink(ISshSysLink)

    Called after a hard link or symbolic link is created.

    Declaration
    public virtual void OnLink(ISshSysLink ctx)
    Parameters
    Type Name Description
    ISshSysLink ctx

    Link metadata.

    | Edit this page View Source

    OnLinking(ISshSysLink)

    Called before a hard link or symbolic link is created.

    Declaration
    public virtual void OnLinking(ISshSysLink ctx)
    Parameters
    Type Name Description
    ISshSysLink ctx

    Link metadata.

    | Edit this page View Source

    OnModifiedAttributes(ISshPath)

    Called after path attributes are modified.

    Declaration
    public virtual void OnModifiedAttributes(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnModifyingAttributes(ISshPath)

    Called before path attributes are modified.

    Declaration
    public virtual void OnModifyingAttributes(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnMoved(ISshMove)

    Called after a path is moved.

    Declaration
    public virtual void OnMoved(ISshMove ctx)
    Parameters
    Type Name Description
    ISshMove ctx

    Move metadata.

    | Edit this page View Source

    OnMoving(ISshMove)

    Called before a path is moved.

    Declaration
    public virtual void OnMoving(ISshMove ctx)
    Parameters
    Type Name Description
    ISshMove ctx

    Move metadata.

    | Edit this page View Source

    OnOpen(ISshEvent)

    Called after a handle is opened.

    Declaration
    public virtual void OnOpen(ISshEvent ctx)
    Parameters
    Type Name Description
    ISshEvent ctx

    The handle event metadata.

    | Edit this page View Source

    OnOpenFailed(ISshIOFailure)

    Called after a handle open fails.

    Declaration
    public virtual void OnOpenFailed(ISshIOFailure ctx)
    Parameters
    Type Name Description
    ISshIOFailure ctx

    The failure metadata.

    | Edit this page View Source

    OnOpening(ISshEvent)

    Called before a handle is opened.

    Declaration
    public virtual void OnOpening(ISshEvent ctx)
    Parameters
    Type Name Description
    ISshEvent ctx

    The handle event metadata.

    | Edit this page View Source

    OnRead(ISshReadWrite)

    Called after file data is read.

    Declaration
    public virtual void OnRead(ISshReadWrite ctx)
    Parameters
    Type Name Description
    ISshReadWrite ctx

    Read metadata.

    | Edit this page View Source

    OnReadEntries(ISshEntries)

    Called after directory entries are read.

    Declaration
    public virtual void OnReadEntries(ISshEntries sshEntries)
    Parameters
    Type Name Description
    ISshEntries sshEntries

    Directory read metadata and entries.

    | Edit this page View Source

    OnReading(ISshReadWrite)

    Called before file data is read.

    Declaration
    public virtual void OnReading(ISshReadWrite ctx)
    Parameters
    Type Name Description
    ISshReadWrite ctx

    Read metadata.

    | Edit this page View Source

    OnReadingEntries(ISshEntries)

    Called before directory entries are read.

    Declaration
    public virtual void OnReadingEntries(ISshEntries sshEntries)
    Parameters
    Type Name Description
    ISshEntries sshEntries

    Directory read metadata.

    | Edit this page View Source

    OnReceived(ISshReceived)

    Called when an SFTP message is received.

    Declaration
    public virtual void OnReceived(ISshReceived sshReceived)
    Parameters
    Type Name Description
    ISshReceived sshReceived

    Received message metadata.

    | Edit this page View Source

    OnReceivedExtension(ISshReceived)

    Called when an SFTP extension message is received.

    Declaration
    public virtual void OnReceivedExtension(ISshReceived sshReceived)
    Parameters
    Type Name Description
    ISshReceived sshReceived

    Received message metadata.

    | Edit this page View Source

    OnRemoved(ISshPath)

    Called after a path is removed.

    Declaration
    public virtual void OnRemoved(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnRemoving(ISshPath)

    Called before a path is removed.

    Declaration
    public virtual void OnRemoving(ISshPath ctx)
    Parameters
    Type Name Description
    ISshPath ctx

    Path metadata.

    | Edit this page View Source

    OnWrite(ISshReadWrite)

    Called after file data is written.

    Declaration
    public virtual void OnWrite(ISshReadWrite ctx)
    Parameters
    Type Name Description
    ISshReadWrite ctx

    Write metadata.

    | Edit this page View Source

    OnWriting(ISshReadWrite)

    Called before file data is written.

    Declaration
    public virtual void OnWriting(ISshReadWrite ctx)
    Parameters
    Type Name Description
    ISshReadWrite ctx

    Write metadata.

    Implements

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