Table of Contents

GetAggregateVersion Method

Definition

Namespace
Savvyio.Domain.EventSourcing
Assemblies
Savvyio.Domain.EventSourcing.dll
Source
src/Savvyio.Domain.EventSourcing/TracedDomainEventExtensions.cs

GetAggregateVersion<T>(T)

Gets the aggregate version from the request.

public static long GetAggregateVersion<T>(this T request) where T : ITracedDomainEvent

Parameters

request T

The ITracedDomainEvent to extend.

Returns

long

The version of the associated ITracedAggregateRoot<TKey>.

Type Parameters

T

The model that implements the ITracedDomainEvent interface.