TRONamedEventData

Overview

The TRONamedEventData class allows to identify TROEventData using context specific information.

Use Case

When your event handler (an instance of the IROValidatedSessionsChangesListener) calls the (IROValidatedSessionsChangesListener) interface, it has to know which data was successfully transferred. For this purpose, the argument aId of the EventSucceeded contains the value of the ID property of an event.

Location

Properties


Data    (declared in TROEventData)

Represents the data that is associated with the current event. The Data property contains the information from the message that was passed from the server to the client. The Data property has a specified format: header and source. The header contains the clients ID, message type and information about the compression of the current message. The source contains the information from the message in encrypted or non-encrypted form.

property Data: TStream read write

ID

Determines which data has reported success when the IROValidatedSessionsChangesListener interface is called.

property ID: TGUID read write

Instance Methods


constructor Create    (declared in TROEventData)

Creates a new instance, saves the anEventDataStream to the Data property and sets the reference count of the Data property to 1.

constructor Create(anEventDataStream: TMemoryStream)

Parameters:

  • anEventDataStream:

AddRef    (declared in TROEventData)

Increments the reference count of the Data property by 1.

function AddRef: integer

RemoveRef    (declared in TROEventData)

Decrements the reference count of the Data property by 1.

function RemoveRef: integer

See Also