TTMSMCPServer.OnTaskCreate Event
Occurs immediately after a task has been created for an asynchronous request and before its execution starts.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Syntax
OnTaskCreate: TTMSMCPTaskCreateEvent;
Parameters
| Name | Description |
|---|---|
Sender |
Server that created the task. |
ATaskId |
Identifier assigned to the new task, the same one the client receives in the task handle. |
AMethod |
Protocol method the task was created for, for example tools/call. |
AParams |
Original request parameters. The instance is owned by the server; do not free it. |