Table of Contents

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 EventSequenceNumber

EventSequenceNumber for the event.

EventSourceId EventSourceId

EventSourceId the event is for.

Event object

The actual event.

Causation Causation

The 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

Causation

Event

The actual event.

public object Event { get; init; }

Property Value

object

EventSourceId

EventSourceId the event is for.

public EventSourceId EventSourceId { get; init; }

Property Value

EventSourceId

EventSourceType

Gets or inits the EventSourceType for the event. Defaults to Default.

public EventSourceType EventSourceType { get; init; }

Property Value

EventSourceType

EventStreamId

Gets or inits the EventStreamId for the event. Defaults to Default.

public EventStreamId EventStreamId { get; init; }

Property Value

EventStreamId

EventStreamType

Gets or inits the EventStreamType for the event. Defaults to All.

public EventStreamType EventStreamType { get; init; }

Property Value

EventStreamType

SequenceNumber

EventSequenceNumber for the event.

public EventSequenceNumber SequenceNumber { get; init; }

Property Value

EventSequenceNumber