Class DomainEvent
Base record for the built-in domain events.
public abstract record DomainEvent : IDomainEvent, IEquatable<DomainEvent>
- Inheritance
-
DomainEvent
- Implements
- Derived
- Inherited Members
Constructors
DomainEvent(IncomingEnvelope)
Base record for the built-in domain events.
protected DomainEvent(IncomingEnvelope Envelope)
Parameters
EnvelopeIncomingEnvelopeThe envelope that produced the event.
Properties
Envelope
The envelope that produced the event.
public IncomingEnvelope Envelope { get; init; }
Property Value
OccurredAt
When the event happened (the envelope timestamp).
public DateTimeOffset OccurredAt { get; }