Class EventForEventSourceIdWithSequenceNumber
- Namespace
- Cratis.Chronicle.Transactions
- Assembly
- Cratis.Chronicle.dll
Represents an event and the EventSourceId it is for with a sequence number representing what order it occurred in.
public record EventForEventSourceIdWithSequenceNumber : IEquatable<EventForEventSourceIdWithSequenceNumber>
- Inheritance
-
EventForEventSourceIdWithSequenceNumber
- Implements
- Inherited Members
Remarks
This is typically used internally by UnitOfWork to keep track of events that are part of the same sequence to guarantee the order of events.
Constructors
EventForEventSourceIdWithSequenceNumber(EventSequenceNumber, EventSourceId, object, Causation)
Represents an event and the EventSourceId it is for with a sequence number representing what order it occurred in.
public EventForEventSourceIdWithSequenceNumber(EventSequenceNumber SequenceNumber, EventSourceId EventSourceId, object Event, Causation Causation)
Parameters
SequenceNumber
EventSequenceNumberEventSequenceNumber for the event.
EventSourceId
EventSourceIdEventSourceId the event is for.
Event
objectThe actual event.
Causation
CausationThe causation for the event.
Remarks
This is typically used internally by UnitOfWork to keep track of events that are part of the same sequence to guarantee the order of events.
Properties
Causation
The causation for the event.
public Causation Causation { get; init; }
Property Value
Event
The actual event.
public object Event { get; init; }
Property Value
EventSourceId
EventSourceId the event is for.
public EventSourceId EventSourceId { get; init; }
Property Value
EventSourceType
Gets or inits the EventSourceType for the event. Defaults to Default.
public EventSourceType EventSourceType { get; init; }
Property Value
EventStreamId
Gets or inits the EventStreamId for the event. Defaults to Default.
public EventStreamId EventStreamId { get; init; }
Property Value
EventStreamType
Gets or inits the EventStreamType for the event. Defaults to All.
public EventStreamType EventStreamType { get; init; }
Property Value
SequenceNumber
EventSequenceNumber for the event.
public EventSequenceNumber SequenceNumber { get; init; }