TTMSMCPServerFactory.CreateFromClass Method
Creates a server that reflects over a class.
API unit family: TMS.MCP.Attributes.Server
Declaring type: TTMSMCPServerFactory
Syntax
class function CreateFromClass(AClass: TClass; AOwner: TComponent = nil): TTMSMCPAttributedServer;
Parameters
| Name | Description |
|---|---|
AClass |
Class carrying the attributes. Only its class methods are published, since no instance is registered. |
AOwner |
Component that owns the created server, or nil to manage its lifetime manually. |
Returns
A server whose declarations are already registered from the class.