TRORTTIEventWriter<T>

Overview

Location

Implements

 

constructor Create (IROMessage, boolean)    (declared in TROEventProxy)

Creates a new TROEventProxy object with the specified message aMessage. If the CloneMessage is true, the constructor creates a copy of the aMessage and saves it in the private variable fMessage. If the CloneMessage is false, the fMessage saves a reference of the aMessage.

constructor Create(const aMessage: IROMessage; CloneMessage: boolean)

Parameters:

  • aMessage: Specified message
  • CloneMessage: When true, a copy of the aMessage will be saved, otherwise a reference to the aMessage will be saved.

constructor Create (IROMessage, IROEventRepository)  reintroduce    (declared in TROEventWriter)

Creates a new instance with the specified event message aMessage and the specified repository aRepository.

constructor Create(const aMessage: IROMessage; const aRepository: IROEventRepository)

Parameters:

  • aMessage: Event message.
  • aRepository: Specified repository that will store the event data and additional information.

ClientID

property ClientID: TGuid read write

Event  protected

function Event: T

ExcludeSender    (declared in TROEventWriter)

Determines the need to use the sender session in the processing of the current event. If ExcludeSender is true (default value), the sender will not receive the event message, if ExcludeSender is false, the sender will receive the event message. For example: In the chat, you can exclude the client sender session from the mailing list.

property ExcludeSender: boolean read write

ExcludeSessionList    (declared in TROEventWriter)

Determines the need to use the SessionList in the processing of the current event. If ExcludeSessionList is false, the SessionList should be used, if ExcludeSessionList is true, the SessionList should not be used.

property ExcludeSessionList: boolean read write

GetExcludeSessionList  protected    (declared in TROEventWriter)

Gets the ExcludeSessionList property.

function GetExcludeSessionList: boolean

GetSessionList  protected    (declared in TROEventWriter)

Gets the SessionList property.

function GetSessionList: TStrings

NewInstance  override    (declared in TROInterfacedObject)

Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.

class function NewInstance: TObject

QueryInterface  protected override stdcall

function QueryInterface(const IID: TGUID; out Obj: ): HResult

Parameters:

  • IID:
  • Obj:

RefCount    (declared in TROInterfacedObject)

Provides read-only access to the reference counter. When this value reaches zero, the object is freed.

property RefCount: Integer read write

Repository  protected    (declared in TROEventWriter)

Defines the repository that is associated with the current TROEventWriter object. The Repository is needed to store the event data with additional information.

property Repository: IROEventRepository read write

SessionList    (declared in TROEventWriter)

Contains the list of the clients (their session GUID) that will receive the event message, if the ExcludeSessionList property equals false. For example: In the chat, the SessionList can contain the list of client sessions that will receive the message from the server.

property SessionList: TStrings read write

SetExcludeSessionList  protected    (declared in TROEventWriter)

Sets the property ExcludeSessionList with specified Value.

procedure SetExcludeSessionList(const Value: boolean)

Parameters:

  • Value: False means that the SessionList should be used in the event processing, true that it should not be used.

 

ClientID

property ClientID: TGuid read write

ExcludeSender    (declared in TROEventWriter)

Determines the need to use the sender session in the processing of the current event. If ExcludeSender is true (default value), the sender will not receive the event message, if ExcludeSender is false, the sender will receive the event message. For example: In the chat, you can exclude the client sender session from the mailing list.

property ExcludeSender: boolean read write

ExcludeSessionList    (declared in TROEventWriter)

Determines the need to use the SessionList in the processing of the current event. If ExcludeSessionList is false, the SessionList should be used, if ExcludeSessionList is true, the SessionList should not be used.

property ExcludeSessionList: boolean read write

RefCount    (declared in TROInterfacedObject)

Provides read-only access to the reference counter. When this value reaches zero, the object is freed.

property RefCount: Integer read write

Repository  protected    (declared in TROEventWriter)

Defines the repository that is associated with the current TROEventWriter object. The Repository is needed to store the event data with additional information.

property Repository: IROEventRepository read write

SessionList    (declared in TROEventWriter)

Contains the list of the clients (their session GUID) that will receive the event message, if the ExcludeSessionList property equals false. For example: In the chat, the SessionList can contain the list of client sessions that will receive the message from the server.

property SessionList: TStrings read write

 

NewInstance  override    (declared in TROInterfacedObject)

Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.

class function NewInstance: TObject

 

constructor Create (IROMessage, boolean)    (declared in TROEventProxy)

Creates a new TROEventProxy object with the specified message aMessage. If the CloneMessage is true, the constructor creates a copy of the aMessage and saves it in the private variable fMessage. If the CloneMessage is false, the fMessage saves a reference of the aMessage.

constructor Create(const aMessage: IROMessage; CloneMessage: boolean)

Parameters:

  • aMessage: Specified message
  • CloneMessage: When true, a copy of the aMessage will be saved, otherwise a reference to the aMessage will be saved.

constructor Create (IROMessage, IROEventRepository)  reintroduce    (declared in TROEventWriter)

Creates a new instance with the specified event message aMessage and the specified repository aRepository.

constructor Create(const aMessage: IROMessage; const aRepository: IROEventRepository)

Parameters:

  • aMessage: Event message.
  • aRepository: Specified repository that will store the event data and additional information.

Event  protected

function Event: T

GetExcludeSessionList  protected    (declared in TROEventWriter)

Gets the ExcludeSessionList property.

function GetExcludeSessionList: boolean

GetSessionList  protected    (declared in TROEventWriter)

Gets the SessionList property.

function GetSessionList: TStrings

QueryInterface  protected override stdcall

function QueryInterface(const IID: TGUID; out Obj: ): HResult

Parameters:

  • IID:
  • Obj:

SetExcludeSessionList  protected    (declared in TROEventWriter)

Sets the property ExcludeSessionList with specified Value.

procedure SetExcludeSessionList(const Value: boolean)

Parameters:

  • Value: False means that the SessionList should be used in the event processing, true that it should not be used.