Table of Contents

TTMSMCPServer.OnTaskCancel Event

Occurs when a client cancels a task, so work already in progress can be abandoned.

API unit family: TMS.MCP.Server Declaring type: TTMSMCPServer Inherited from: TTMSMCPCustomServer

Syntax

OnTaskCancel: TTMSMCPTaskCancelEvent;

Remarks

The task has already been marked cancelled when the handler runs; the event is the hook for stopping the work itself, which the server cannot interrupt on its own.

Parameters

Name Description
Sender Server that owns the task.
ATaskId Identifier of the task being cancelled.