Table of Contents

Class EventStoreEventState

Namespace
Excalibur.EventSourcing
Assembly
Excalibur.EventSourcing.Abstractions.dll

Describes the committed identity and lifecycle state of an event without exposing its payload or metadata.

public sealed record EventStoreEventState : IEquatable<EventStoreEventState>
Inheritance
EventStoreEventState
Implements
Inherited Members

Constructors

EventStoreEventState(KeyedTenantPartition, string, string, string, long, long, string, DateTimeOffset, DateTimeOffset?)

Describes the committed identity and lifecycle state of an event without exposing its payload or metadata.

public EventStoreEventState(KeyedTenantPartition Tenant, string AggregateId, string AggregateType, string EventId, long Version, long GlobalPosition, string EventType, DateTimeOffset Timestamp, DateTimeOffset? ArchivedAt)

Parameters

Tenant KeyedTenantPartition

The partition recorded on the event.

AggregateId string

The aggregate identifier.

AggregateType string

The case-sensitive aggregate type.

EventId string

The event identifier.

Version long

The zero-based aggregate version.

GlobalPosition long

The global position, or zero if the provider does not assign one.

EventType string

The current event type, including an explicit erasure marker when erased.

Timestamp DateTimeOffset

The stored event timestamp.

ArchivedAt DateTimeOffset?

The archive timestamp, if present.

Properties

AggregateId

The aggregate identifier.

public string AggregateId { get; init; }

Property Value

string

AggregateType

The case-sensitive aggregate type.

public string AggregateType { get; init; }

Property Value

string

ArchivedAt

The archive timestamp, if present.

public DateTimeOffset? ArchivedAt { get; init; }

Property Value

DateTimeOffset?

EventId

The event identifier.

public string EventId { get; init; }

Property Value

string

EventType

The current event type, including an explicit erasure marker when erased.

public string EventType { get; init; }

Property Value

string

GlobalPosition

The global position, or zero if the provider does not assign one.

public long GlobalPosition { get; init; }

Property Value

long

Tenant

The partition recorded on the event.

public KeyedTenantPartition Tenant { get; init; }

Property Value

KeyedTenantPartition

Timestamp

The stored event timestamp.

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

Version

The zero-based aggregate version.

public long Version { get; init; }

Property Value

long