Table of Contents

SetAggregateVersion Method

Definition

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

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

request T

The ITracedDomainEvent to extend.

version long

The aggregate version of the model.

Returns

T

A reference to request after the operation has completed.

Type Parameters

T

The model that implements the ITracedDomainEvent interface.