TTMSMCPTaskRegistry.GetAllTasks Method
Returns every registered task, across all sessions.
API unit family: TMS.MCP.Tasks
Declaring type: TTMSMCPTaskRegistry
Overloads
Overload 1
Returns every registered task, across all sessions.
function GetAllTasks: TArray<TTMSMCPTask>; overload;
Remarks
Meant for server-wide maintenance. Use the session-scoped overload when answering a client, so that one session never sees the tasks of another.
Returns
The tasks, which stay owned by the registry, in no particular order.
Overload 2
Returns the registered tasks owned by one transport session.
function GetAllTasks(const ASessionId: string): TArray<TTMSMCPTask>; overload;
Parameters
| Name | Description |
|---|---|
ASessionId |
Session to filter on. An empty value matches the tasks that were created without a session, as used by transports that have none. |
Returns
The matching tasks, which stay owned by the registry, in no particular order. Use this overload to answer a client.