TTMSMCPTransport.OnGetSessionProtocolVersion Event
Handler the channel calls to look up the protocol version negotiated for a session.
API unit family: TMS.MCP.Transport
Declaring type: TTMSMCPTransport
Syntax
OnGetSessionProtocolVersion: TTMSMCPTransportGetSessionProtocolVersionEvent;
Remarks
Used to check a per-request version header against the version the session actually agreed on. With no handler assigned the lookup yields an empty string, which the channel treats as "nothing to compare against" rather than as a mismatch.
Parameters
| Name | Description |
|---|---|
SessionId |
Session whose negotiated version is being asked for. |
Returns
The version the handler has recorded for that session, or an empty string when none has been recorded yet - which is the case while the initialize handshake is still running.