Struct MessageEventSourcing
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
AggregateType
Gets the type of the aggregate for event sourcing.
public string? AggregateType { get; init; }
Property Value
AggregateVersion
Gets the version of the aggregate for event sourcing.
public long? AggregateVersion { get; init; }
Property Value
EventType
Gets the type of the event for event sourcing.
public string? EventType { get; init; }
Property Value
EventVersion
Gets the version of the event for event sourcing.
public int? EventVersion { get; init; }
Property Value
GlobalPosition
Gets the global position in the event store.
public long? GlobalPosition { get; init; }
Property Value
StreamName
Gets the name of the event stream.
public string? StreamName { get; init; }
Property Value
StreamPosition
Gets the position within the event stream.
public long? StreamPosition { get; init; }