Table of Contents

Struct MessageEventSourcing

Namespace
Excalibur.Dispatch.Metadata
Assembly
Excalibur.Dispatch.dll

Focused value type grouping the event-sourcing metadata for a message.

public readonly record struct MessageEventSourcing : IEquatable<MessageEventSourcing>
Implements
Inherited Members
Extension Methods

Remarks

Composed onto MessageMetadata. Carries aggregate, stream and event positioning fields. Holds at most ten properties to satisfy the Microsoft-first focused-value-type design guideline.

Properties

AggregateId

Gets the identifier of the aggregate for event sourcing.

public string? AggregateId { get; init; }

Property Value

string

The aggregate identifier or null.

AggregateType

Gets the type of the aggregate for event sourcing.

public string? AggregateType { get; init; }

Property Value

string

The aggregate type or null.

AggregateVersion

Gets the version of the aggregate for event sourcing.

public long? AggregateVersion { get; init; }

Property Value

long?

The aggregate version or null.

EventType

Gets the type of the event for event sourcing.

public string? EventType { get; init; }

Property Value

string

The event type or null.

EventVersion

Gets the version of the event for event sourcing.

public int? EventVersion { get; init; }

Property Value

int?

The event version or null.

GlobalPosition

Gets the global position in the event store.

public long? GlobalPosition { get; init; }

Property Value

long?

The global position or null.

StreamName

Gets the name of the event stream.

public string? StreamName { get; init; }

Property Value

string

The stream name or null.

StreamPosition

Gets the position within the event stream.

public long? StreamPosition { get; init; }

Property Value

long?

The stream position or null.