TsgcWSAPIServer_MCP › Properties › TasksCount
Number of tasks of the MCP tasks extension stored by the server.
property TasksCount: Integer read GetTasksCount;
—
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.
MemoLog.Lines.Add('stored tasks: ' + IntToStr(MCPServer.TasksCount));