Show / Hide Table of Contents

Class Event

Represents an event message.

Inheritance
Object
Event
VersionedEvent
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
[Serializable]
public abstract class Event : IEvent, Message, ISupportMultitenant

Constructors

Event()

Creates a new Event instance.

Declaration
protected 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
IEvent.AggregateId

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
IEvent.CausedBy

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
IEvent.CausedByPersonId

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
Message.CorrelationId

EventId

Gets a unique identifier for the event.

Declaration
public Guid EventId { get; set; }
Property Value
System.Guid

Implements
IEvent.EventId

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
IEvent.Occured

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
IEvent.OwnerId
ISupportMultitenant.OwnerId

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
Message.TraceId

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.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
EventExtensions.CheckThatEventHasOccurred(IEvent)
EventExtensions.AddCallContextMetadata(Event, ICallContext)
MessageExtensions.IsOnlyForInternalOwner<T>(T)
MessageExtensions.GetEventTypesToInvalidate(IEvent)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX