TTMSMCPClientTransportHTTP.OnCreateIOHandler Event
Occurs before a secure connection is opened, so that the application can supply the connection handler itself instead of letting the transport create a default one.
API unit family: TMS.MCP.Client.Transport.HTTP
Declaring type: TTMSMCPClientTransportHTTP
Type: TTMSMCPClientTransportCreateIOHandler
Syntax
property OnCreateIOHandler: TTMSMCPClientTransportCreateIOHandler;
Remarks
Raised only for an address beginning with https, once per request, on the thread that issues that request, which for a posted message is a background worker; the handler therefore has to be safe to call concurrently. It is raised for the request that ends the session as well. The variable it receives is uninitialized, so it must be assigned unconditionally rather than inspected first, and an instance created without an owner is not released by the transport.