GetAggregateVersion Method
Definition
- Namespace
- Savvyio.Domain.EventSourcing
- Assemblies
- Savvyio.Domain.EventSourcing.dll
GetAggregateVersion<T>(T)
Gets the aggregate version from the request.
public static long GetAggregateVersion<T>(this T request) where T : ITracedDomainEvent
Parameters
requestTThe ITracedDomainEvent to extend.
Returns
- long
The version of the associated ITracedAggregateRoot<TKey>.
Type Parameters
TThe model that implements the ITracedDomainEvent interface.