IROServerEventsBroker
Overview
The IROServerEventsBroker supports Event Sinks and Server Callbacks in scenarios when the client takes the active role of sending requests to the server, while the server passively waits for requests, processes them and sends back a response.
The TROInvoker class uses this interface for accessing TRORemoteDataModule methods.
The IROServerEventsBroker is used internally and should not be manipulated by the user.
Location
- Unit: uROServerIntf.pas
- Ancestry: IROServerEventsBroker
Required Methods
AllowRemoteEventsRegistration
Specifies if the service will allows/disallows the self-subscription of events for the client applications.
function AllowRemoteEventsRegistration: Boolean
GetEventsData
Returns events for the client.
function GetEventsData(const ClientID: string; out EventsData: Binary): Integer
Parameters:
- ClientID: Client ID
- EventsData: Binary stream that holds the event data
RegisterEventClient
Subscribes the client to receive events.
procedure RegisterEventClient(const ClientID: string; const EventTypes: string)
Parameters:
- ClientID: Client identifier to subscribe
- EventTypes: Identifier (GUID) of the event sink containing the events to subscribe the client to
UnregisterEventClient
Unsubscribes the client to receive events.
procedure UnregisterEventClient(const ClientID: string; const EventTypes: string)
Parameters:
- ClientID: Client identifier to unsubscribe
- EventTypes: Identifier (GUID) of the event sink containing the events to unsubscribe the client from.