Class Event
Represents an event message.
Inherited Members
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
[Serializable]
public abstract class Event : IEvent, Message, ISupportMultitenant
Constructors
Event()
Event(DateTime)
Creates a new Event instance.
Declaration
protected Event(DateTime occured)
Parameters
System.DateTime
occured
The System.DateTime when the event is published. |
Remarks
Set occured
to a time in the future to delay when it will be published.
Properties
AggregateId
Gets the identifier of the source (aggregate) originating the event.
Declaration
public Guid AggregateId { get; set; }
Property Value
System.Guid
|
Implements
CausedBy
The name of the logged in user that is the source to this event.
Declaration
public string CausedBy { get; set; }
Property Value
String
|
Implements
CausedByPersonId
The name identifier of the logged in user that is the source to this event.
Declaration
public Guid CausedByPersonId { get; set; }
Property Value
System.Guid
|
Implements
CorrelationId
Gets or sets a correlation id that can be used to correlate different actions that is going on in a system.
Declaration
public virtual Guid CorrelationId { get; set; }
Property Value
System.Guid
|
Implements
EventId
Gets a unique identifier for the event.
Declaration
public Guid EventId { get; set; }
Property Value
System.Guid
|
Implements
Occured
Gets or sets the System.DateTime when this event occured (is published) in Utc time.
Declaration
public DateTime Occured { get; set; }
Property Value
System.DateTime
|
Implements
OccuredLocalTime
Gets the System.DateTime when this event occured (is published) in Swedish (W. Europe Standard Time) time zone.
Declaration
[IgnoreDataMember]
public DateTime OccuredLocalTime { get; }
Property Value
System.DateTime
|
OwnerId
Gets the unique identifier of the owner (tenant) that caused this event.
Declaration
public Guid OwnerId { get; set; }
Property Value
System.Guid
|
Implements
TraceId
Gets the trace id that can be used to trace different actions that is going on in a system.
Declaration
public virtual string TraceId { get; set; }
Property Value
String
|
Implements
Methods
ShouldSerializeOccuredLocalTime()
Gets if the OccuredLocalTime should be serialized or not. The default is false.
Declaration
public virtual bool ShouldSerializeOccuredLocalTime()
Returns
Boolean
true if the OccuredLocalTime should be serialized; otherwise false. |