SetAggregateVersion Method
Definition
- Namespace
- Savvyio.Domain.EventSourcing
- Assemblies
- Savvyio.Domain.EventSourcing.dll
SetAggregateVersion<T>(T, long)
Assigns a new version to the request.
public static T SetAggregateVersion<T>(this T request, long version) where T : ITracedDomainEvent
Parameters
requestTThe ITracedDomainEvent to extend.
versionlongThe aggregate version of the model.
Returns
- T
A reference to
requestafter the operation has completed.
Type Parameters
TThe model that implements the ITracedDomainEvent interface.