Class AMNetSftpEventListener
Default SFTP event listener that logs SFTP lifecycle and file operation events.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetSftpEventListener : IAMNetSftpEventListener
Constructors
| Edit this page View SourceAMNetSftpEventListener()
Creates a default SFTP event listener.
Declaration
public AMNetSftpEventListener()
Methods
| Edit this page View SourceOnClosed(ISshEvent)
Called after a handle is closed.
Declaration
public virtual void OnClosed(ISshEvent ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshEvent | ctx | The handle event metadata. |
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. |
OnCreated(ISshPath)
Called after a path is created.
Declaration
public virtual void OnCreated(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
OnCreating(ISshPath)
Called before a path is created.
Declaration
public virtual void OnCreating(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
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. |
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. |
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. |
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. |
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. |
OnModifiedAttributes(ISshPath)
Called after path attributes are modified.
Declaration
public virtual void OnModifiedAttributes(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
OnModifyingAttributes(ISshPath)
Called before path attributes are modified.
Declaration
public virtual void OnModifyingAttributes(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
OnMoved(ISshMove)
Called after a path is moved.
Declaration
public virtual void OnMoved(ISshMove ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshMove | ctx | Move metadata. |
OnMoving(ISshMove)
Called before a path is moved.
Declaration
public virtual void OnMoving(ISshMove ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshMove | ctx | Move metadata. |
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. |
OnOpenFailed(ISshIOFailure)
Called after a handle open fails.
Declaration
public virtual void OnOpenFailed(ISshIOFailure ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshIOFailure | ctx | The failure metadata. |
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. |
OnRead(ISshReadWrite)
Called after file data is read.
Declaration
public virtual void OnRead(ISshReadWrite ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshReadWrite | ctx | Read metadata. |
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. |
OnReading(ISshReadWrite)
Called before file data is read.
Declaration
public virtual void OnReading(ISshReadWrite ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshReadWrite | ctx | Read metadata. |
OnReadingEntries(ISshEntries)
Called before directory entries are read.
Declaration
public virtual void OnReadingEntries(ISshEntries sshEntries)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshEntries | sshEntries | Directory read metadata. |
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. |
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. |
OnRemoved(ISshPath)
Called after a path is removed.
Declaration
public virtual void OnRemoved(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
OnRemoving(ISshPath)
Called before a path is removed.
Declaration
public virtual void OnRemoving(ISshPath ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshPath | ctx | Path metadata. |
OnWrite(ISshReadWrite)
Called after file data is written.
Declaration
public virtual void OnWrite(ISshReadWrite ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshReadWrite | ctx | Write metadata. |
OnWriting(ISshReadWrite)
Called before file data is written.
Declaration
public virtual void OnWriting(ISshReadWrite ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshReadWrite | ctx | Write metadata. |