Table of Contents

TTMSMCPStreamableHTTPTransport.Start Method

Opens the listening port and starts the worker threads.

API unit family: TMS.MCP.Transport.StreamableHTTP Declaring type: TTMSMCPStreamableHTTPTransport

Syntax

procedure Start; override;

Remarks

Does nothing when the listener is already open. The port and certificate settings are applied to the listener at this point, which is why they cannot be changed while it is running. The address the channel came up on is reported through TTMSMCPStreamableHTTPTransport.OnLog.

Exceptions

Exception Description
Exception Raised when no message handler has been assigned; when bearer authentication is required but no token validation handler has been assigned, since nothing could then accept a token; and by the underlying server when the port cannot be opened or the certificate cannot be used. The worker threads are stopped again before the error propagates, so a failed start does not leave threads behind.