Table of Contents

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

string

AggregateType

Gets the aggregate type name.

public required string AggregateType { get; init; }

Property Value

string

DocumentId

Gets the document ID in the store.

public string? DocumentId { get; init; }

Property Value

string

ETag

Gets the ETag for optimistic concurrency.

public string? ETag { get; init; }

Property Value

string

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

string

EventType

Gets the event type name.

public required string EventType { get; init; }

Property Value

string

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

string

Timestamp

Gets when the event occurred.

public required DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

Version

Gets the event version within the aggregate.

public required long Version { get; init; }

Property Value

long