Table of Contents

TTMSMCPCustomClientConnection.Invoke Method

Sends any protocol request, for cases the dedicated methods do not cover.

API unit family: TMS.MCP.Client.Connection Declaring type: TTMSMCPCustomClientConnection

Syntax

procedure Invoke(AMethod: TTMSMCPClientRequestType; AParams: TJSONValue);

Remarks

The connection takes ownership of the parameters and releases them with the request, so do not free them and do not pass an object that is owned elsewhere. On a current protocol version a metadata member carrying the client identity and capabilities is added to the parameters before they are sent. The request identifier is allocated internally; the answer arrives through the event that matches the request kind.

Parameters

Name Description
AMethod Request to send. The method name is derived from this value, and the response is routed by it.
AParams Parameters of the request, or nil for a request that takes none.