Table of Contents

Class SequencedEvent

Namespace
Opossum.Core
Assembly
Opossum.dll

An event that has been committed to the event store and assigned a sequence position.

public record SequencedEvent : IEquatable<SequencedEvent>
Inheritance
SequencedEvent
Implements
Inherited Members

Remarks

This is the read-side counterpart of NewEvent. Position is the store-assigned, globally unique, monotonically increasing sequence number for this event within its context. It is used as the AfterSequencePosition guard when building a DecisionModel<TState>.

Properties

Event

The domain event payload and its type metadata.

public required DomainEvent Event { get; init; }

Property Value

DomainEvent

Metadata

Metadata attached to the event (timestamp, correlation IDs, etc.).

public Metadata Metadata { get; init; }

Property Value

Metadata

Position

The 1-based sequence position assigned by the event store. Positions are contiguous and globally ordered within a context.

public long Position { get; init; }

Property Value

long