TTMSMCPServer.OnListResources Event
Occurs while a
resources/listrequest is answered, so the reported resource collection can be adjusted for the calling client.
API unit family: TMS.MCP.Server
Declaring type: TTMSMCPServer
Inherited from: TTMSMCPCustomServer
Syntax
OnListResources: TTMSMCPResourceListEvent;
Remarks
The handler runs before the list is serialized, so an entry added, removed or changed here is reflected in the answer the client receives.
Parameters
| Name | Description |
|---|---|
Sender |
Server that is answering the request. |
ResourceList |
Live resource collection that will be serialized. Changes made to it take effect immediately and persist beyond the request. |