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
TenantKeyedTenantPartitionThe partition recorded on the event.
AggregateIdstringThe aggregate identifier.
AggregateTypestringThe case-sensitive aggregate type.
EventIdstringThe event identifier.
VersionlongThe zero-based aggregate version.
GlobalPositionlongThe global position, or zero if the provider does not assign one.
EventTypestringThe current event type, including an explicit erasure marker when erased.
TimestampDateTimeOffsetThe stored event timestamp.
ArchivedAtDateTimeOffset?The archive timestamp, if present.
Properties
AggregateId
The aggregate identifier.
public string AggregateId { get; init; }
Property Value
AggregateType
The case-sensitive aggregate type.
public string AggregateType { get; init; }
Property Value
ArchivedAt
The archive timestamp, if present.
public DateTimeOffset? ArchivedAt { get; init; }
Property Value
EventId
The event identifier.
public string EventId { get; init; }
Property Value
EventType
The current event type, including an explicit erasure marker when erased.
public string EventType { get; init; }
Property Value
GlobalPosition
The global position, or zero if the provider does not assign one.
public long GlobalPosition { get; init; }
Property Value
Tenant
The partition recorded on the event.
public KeyedTenantPartition Tenant { get; init; }
Property Value
Timestamp
The stored event timestamp.
public DateTimeOffset Timestamp { get; init; }
Property Value
Version
The zero-based aggregate version.
public long Version { get; init; }