TIROActiveEventServerList

Overview

The TIROActiveEventServerList class implements the IROActiveEventServerList interface in Remoting SDK for Delphi implementations of event repositories. This class is not designed to be used outside of the Remoting SDK for Delphi.

Location

Implements

 

constructor Create

Initializes the instance as the head element of the aNext list.

constructor Create(aNext: IROActiveEventServerList; aItem: IROActiveEventServer)

Parameters:

  • aNext: Tail of the list
  • aItem: Becomes the Server

AddListener

If aItem is not present yet, it will be added to aList.
The new aItem is inserted at the head of aList, which is returned.

class function AddListener(aList: IROActiveEventServerList; aItem: IROActiveEventServer): IROActiveEventServerList

Parameters:

  • aList: List of servers
  • aItem: Server to be added to the list

DispatchEvent

This method is called by the event manager to notify the server about a new event.

procedure DispatchEvent(anEventDataItem: TROEventData; aSessionReference: TGUID; aSender: TObject)

Parameters:

  • anEventDataItem: Represents an event that fires.
  • aSessionReference: Unique identifier that represents the session.
  • aSender: Indicates the object that receives the event.

GetNext

Implements the IROActiveEventServerList by returning the tail of the list.

function GetNext: IROActiveEventServerList

GetServer

Implements the IROActiveEventServerList by returning the item set in Create as Server.

function GetServer: IROActiveEventServer

RemoveListener

Removes aItem from aList and returns the head of aList.

class function RemoveListener(aList: IROActiveEventServerList; aItem: IROActiveEventServer): IROActiveEventServerList

Parameters:

  • aList: List of servers
  • aItem: Server to be removed from the list

SetNext

Implements the IROActiveEventServerList by setting aData as the tail of the list.

procedure SetNext(aData: IROActiveEventServerList)

Parameters:

  • aData: Tail of the list

 

AddListener

If aItem is not present yet, it will be added to aList.
The new aItem is inserted at the head of aList, which is returned.

class function AddListener(aList: IROActiveEventServerList; aItem: IROActiveEventServer): IROActiveEventServerList

Parameters:

  • aList: List of servers
  • aItem: Server to be added to the list

RemoveListener

Removes aItem from aList and returns the head of aList.

class function RemoveListener(aList: IROActiveEventServerList; aItem: IROActiveEventServer): IROActiveEventServerList

Parameters:

  • aList: List of servers
  • aItem: Server to be removed from the list

 

constructor Create

Initializes the instance as the head element of the aNext list.

constructor Create(aNext: IROActiveEventServerList; aItem: IROActiveEventServer)

Parameters:

  • aNext: Tail of the list
  • aItem: Becomes the Server

DispatchEvent

This method is called by the event manager to notify the server about a new event.

procedure DispatchEvent(anEventDataItem: TROEventData; aSessionReference: TGUID; aSender: TObject)

Parameters:

  • anEventDataItem: Represents an event that fires.
  • aSessionReference: Unique identifier that represents the session.
  • aSender: Indicates the object that receives the event.

GetNext

Implements the IROActiveEventServerList by returning the tail of the list.

function GetNext: IROActiveEventServerList

GetServer

Implements the IROActiveEventServerList by returning the item set in Create as Server.

function GetServer: IROActiveEventServer

SetNext

Implements the IROActiveEventServerList by setting aData as the tail of the list.

procedure SetNext(aData: IROActiveEventServerList)

Parameters:

  • aData: Tail of the list

See Also