TTMSMCPServer.OnSessionDestroyed Event
Occurs after a client session has been torn down and its session state discarded. Raised only by session-aware transports.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Syntax
OnSessionDestroyed: TTMSMCPSessionEvent;
__property TTMSMCPSessionEvent OnSessionDestroyed = {read=FOnSessionDestroyed, write=SetOnSessionDestroyed};
Parameters
| Name | Description |
|---|---|
Sender |
Server that owned the session. |
SessionId |
Identifier of the session that was torn down. Its state is already gone, so the identifier can no longer be used to look anything up. |