Session Events |
The Session type exposes the following members.
Name | Description | |
---|---|---|
AfterMessageIsParsedEvent | Fired after incoming message is parsed and stored in storage. Before any message validation. | |
AfterMessageIsReceivedEvent | Occurs when the incoming message is just received from the wire. | |
BeforeMessageIsSentEvent | Occurs when the incoming message is about to be sent to the wire. | |
BeforeMessageIsSerializedEvent | Fired after outgoing message is validated and before it is stored in the storage and sent to socket. | |
HeartbeatWithTestReqIDEvent | Occurs when a Heartbeat message (MsgType = 0) with the TestReqID field (tag = 112) has been received. | |
IncomingMessageEvent | Occurs when the incoming messages received. | |
InvalidResendRequestEvent | Occurs when a ill-formed Resend Request (MsgType = 2) has been received. | |
LogonEvent | Occurs when the Logon message has been received from the counterpart. | |
LogoutEvent | Occurs when the Logout message has been received from the counterpart or the session was disconnected. | |
MsgRejectEvent | Occurs when a message have to be rejected. | |
NewStateEvent | Occurs when the session has changed its state. | |
ReconnectTryEvent | This call-back method is called each time session tries to reconnect. | |
ResendEvent | Occurs when an outgoing message is about to be resent as a reply to the incoming ResendRequest message. | |
ResendRequestEvent | Occurs when a Resend Request (MsgType = 2) has been received. | |
ResendRequestLoopEvent | This call-back method is called when #DuplicateResendRequestLimit ResendRequest messages are received. | |
SequenceGapEvent | Occurs when a message gap is detected in incoming messages. | |
SessionLevelRejectEvent | Occurs when a session-level Reject message (MsgType = 3) is received. | |
SessionLevelRejectWithSeqNumTooHighEvent | Fired when Session Level Reject message is received with the sequence number too high. If message is processed, user should set IncomingMessageEventHandler.Processed = true. In this case Resend Request message will not be sent. | |
UnableToRouteMessageEvent | Occurs when the message has to be routed to the session, which does not exist. | |
UnexpectedMessageEvent | Occurs when unexpected message is received. For example - when first message in session is not a Logon. |