TsgcWSAPIServer_MCP › Properties › TasksCount

TasksCount Property

Number of tasks of the MCP tasks extension stored by the server.

Syntax

property TasksCount: Integer read GetTasksCount;

Default Value

—

Remarks

Read only. Counts the tasks created with CreateTask that are still kept by the server, working or finished. Expired tasks are purged before counting, so the value drops when the time to live of a task elapses. The property returns 0 before the first MCP request is processed. See Tasks.

Example

MemoLog.Lines.Add('stored tasks: ' + IntToStr(MCPServer.TasksCount));

Back to Properties