Class CloudStoredEvent
- Namespace
- Excalibur.Data.CloudNative
- Assembly
- Excalibur.Data.Abstractions.dll
Represents a stored event in a cloud-native event store.
public sealed record CloudStoredEvent : IEquatable<CloudStoredEvent>
- Inheritance
-
CloudStoredEvent
- Implements
- Inherited Members
Remarks
Extends the base stored event with cloud-native metadata.
Properties
AggregateId
Gets the aggregate identifier.
public required string AggregateId { get; init; }
Property Value
AggregateType
Gets the aggregate type name.
public required string AggregateType { get; init; }
Property Value
DocumentId
Gets the document ID in the store.
public string? DocumentId { get; init; }
Property Value
ETag
Gets the ETag for optimistic concurrency.
public string? ETag { get; init; }
Property Value
EventData
Gets the serialized event data.
public required byte[] EventData { get; init; }
Property Value
- byte[]
EventId
Gets the unique event identifier.
public required string EventId { get; init; }
Property Value
EventType
Gets the event type name.
public required string EventType { get; init; }
Property Value
Metadata
Gets the serialized event metadata.
public byte[]? Metadata { get; init; }
Property Value
- byte[]
PartitionKeyValue
Gets the partition key for the event.
public required string PartitionKeyValue { get; init; }
Property Value
Timestamp
Gets when the event occurred.
public required DateTimeOffset Timestamp { get; init; }
Property Value
Version
Gets the event version within the aggregate.
public required long Version { get; init; }