Table of Contents

Class MetadataEventSourcingExtensions

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Extension methods for accessing event sourcing metadata from Properties.

public static class MetadataEventSourcingExtensions
Inheritance
MetadataEventSourcingExtensions
Inherited Members

Methods

GetAggregateId(IMessageMetadata)

Gets the aggregate identifier for event sourcing scenarios.

public static string? GetAggregateId(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

string

The aggregate identifier, or null if not set.

GetAggregateType(IMessageMetadata)

Gets the type of the aggregate for event sourcing.

public static string? GetAggregateType(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

string

The aggregate type, or null if not set.

GetAggregateVersion(IMessageMetadata)

Gets the version of the aggregate after this event.

public static long? GetAggregateVersion(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

long?

The aggregate version, or null if not set.

GetEventType(IMessageMetadata)

Gets the event type for event sourcing.

public static string? GetEventType(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

string

The event type, or null if not set.

GetEventVersion(IMessageMetadata)

Gets the event version for schema evolution.

public static int? GetEventVersion(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

int?

The event version, or null if not set.

GetGlobalPosition(IMessageMetadata)

Gets the global position of this event in the event store.

public static long? GetGlobalPosition(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

long?

The global position, or null if not set.

GetStreamName(IMessageMetadata)

Gets the name of the event stream.

public static string? GetStreamName(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

string

The stream name, or null if not set.

GetStreamPosition(IMessageMetadata)

Gets the position of this event in the stream.

public static long? GetStreamPosition(this IMessageMetadata metadata)

Parameters

metadata IMessageMetadata

The message metadata.

Returns

long?

The stream position, or null if not set.