Class AMNetSessionListener
Default session listener that logs SSH session lifecycle events.
Implements
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetSessionListener : IAMNetSessionListener
Constructors
| Edit this page View SourceAMNetSessionListener()
Creates a session listener using the default logger.
Declaration
public AMNetSessionListener()
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 SourceOnSessionClosed(ISshSession)
Called when the SSH session is closed.
Declaration
public virtual void OnSessionClosed(ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSession | session | The session metadata. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |