Interface IAMNetSessionListener
Receives SSH session lifecycle, negotiation, and error events.
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public interface IAMNetSessionListener
Methods
| Edit this page View SourceOnSessionClosed(ISshSession)
Called when the SSH session is closed.
Declaration
void OnSessionClosed(ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSession | session | The session metadata. |
OnSessionCreated(ISshSession)
Called when a session object is created.
Declaration
void OnSessionCreated(ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSession | session | The session metadata. |
OnSessionDisconnect(ISshSessionEvent)
Called when a session disconnect message is observed.
Declaration
void OnSessionDisconnect(ISshSessionEvent context)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSessionEvent | context | The disconnect event metadata. |
OnSessionEstablished(ISshSession)
Called when the SSH session is established.
Declaration
void OnSessionEstablished(ISshSession session)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSession | session | The session metadata. |
OnSessionEvent(ISshSessionEvent)
Called for a generic session event.
Declaration
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
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
void OnSessionNegotiationEnd(ISshSessionEvent context)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSessionEvent | context | The negotiation event metadata. |
OnSessionNegotiationOptionsCreated(ISshSessionEvent)
Called after negotiation options are created.
Declaration
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
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
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
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
void OnSessionPeerIdentificationSend(ISshSessionEvent context)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSessionEvent | context | The peer identification metadata. |