TsgcWSPClient_AMQP1 › Events

TsgcWSPClient_AMQP1 Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
OnAMQPConnectFires after the peer answers with its Open frame, i.e. when the AMQP 1.0 container-level handshake has completed.
OnAMQPDisconnectFires after the underlying transport (WebSocket or TCP) has closed, reporting the close code.
OnAMQPCloseFires when an AMQP 1.0 Close frame is received from the peer, carrying the optional error that terminated the container.
OnAMQPExceptionFires when an unhandled exception is raised while processing AMQP 1.0 frames.

Sessions

NameDescription
OnAMQPSessionOpenFires when the peer answers a session Begin frame, confirming the session has been opened on its channel.
OnAMQPSessionCloseFires when the peer answers with an End frame, terminating an AMQP 1.0 session.

Links

NameDescription
OnAMQPLinkOpenFires when the peer answers with an Attach frame, confirming that a sender or receiver link is fully established.
OnAMQPLinkCloseFires when the peer answers with a Detach frame, releasing a sender or receiver link.

Messaging

NameDescription
OnAMQPMessageFires when a complete message arrives on a receiver link; the handler chooses the terminal delivery state that is sent back to the peer.
OnAMQPMessageSentFires after the last Transfer frame of a message has been written to the transport on a sender link.
OnAMQPMessageSentAckFires when the peer returns the Disposition frame that settles a previously sent message, reporting its terminal delivery state.

Authentication

NameDescription
OnAMQPSASLAuthenticationFires with the SASL outcome returned by the peer during the AMQP 1.0 SASL layer, letting the handler decide whether to swallow a failure.

Low-level

NameDescription
OnAMQPBeforeReadFrameFires for every AMQP 1.0 frame received from the peer before the component dispatches it, allowing inspection or suppression.
OnAMQPBeforeWriteFrameFires for every AMQP 1.0 frame the client is about to emit, allowing inspection, last-moment edits or suppression.

All Events (alphabetical)

NameDescription
OnAMQPBeforeReadFrameFires for every AMQP 1.0 frame received from the peer before the component dispatches it, allowing inspection or suppression.
OnAMQPBeforeWriteFrameFires for every AMQP 1.0 frame the client is about to emit, allowing inspection, last-moment edits or suppression.
OnAMQPCloseFires when an AMQP 1.0 Close frame is received from the peer, carrying the optional error that terminated the container.
OnAMQPConnectFires after the peer answers with its Open frame, i.e. when the AMQP 1.0 container-level handshake has completed.
OnAMQPDisconnectFires after the underlying transport (WebSocket or TCP) has closed, reporting the close code.
OnAMQPExceptionFires when an unhandled exception is raised while processing AMQP 1.0 frames.
OnAMQPLinkCloseFires when the peer answers with a Detach frame, releasing a sender or receiver link.
OnAMQPLinkOpenFires when the peer answers with an Attach frame, confirming that a sender or receiver link is fully established.
OnAMQPMessageFires when a complete message arrives on a receiver link; the handler chooses the terminal delivery state that is sent back to the peer.
OnAMQPMessageSentFires after the last Transfer frame of a message has been written to the transport on a sender link.
OnAMQPMessageSentAckFires when the peer returns the Disposition frame that settles a previously sent message, reporting its terminal delivery state.
OnAMQPSASLAuthenticationFires with the SASL outcome returned by the peer during the AMQP 1.0 SASL layer, letting the handler decide whether to swallow a failure.
OnAMQPSessionCloseFires when the peer answers with an End frame, terminating an AMQP 1.0 session.
OnAMQPSessionOpenFires when the peer answers a session Begin frame, confirming the session has been opened on its channel.