![]() |
CQRS.NET
4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
|
TAggregateRoot Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.GetToVersion< TAggregateRoot > | ( | Guid | aggregateId, |
int | version, | ||
IList< IEvent< TAuthenticationToken >> | events = null |
||
) |
Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided version .
TAggregateRoot | The Type of the IAggregateRoot<TAuthenticationToken>. |
aggregateId | The identifier of the IAggregateRoot<TAuthenticationToken> to retrieve. |
version | Load events up-to and including from this version |
events | A collection of IEvent<TAuthenticationToken> to replay on the retrieved IAggregateRoot<TAuthenticationToken>. If null, the IEventStore<TAuthenticationToken> will be used to retrieve a list of IEvent<TAuthenticationToken> for you. |
Implemented in Cqrs.Cache.CacheRepository< TAuthenticationToken >, Cqrs.Domain.AggregateRepository< TAuthenticationToken >, Cqrs.Akka.Snapshots.AkkaSnapshotRepository< TAuthenticationToken >, and Cqrs.Snapshots.SnapshotRepository< TAuthenticationToken >.
TAggregateRoot | : | IAggregateRoot<TAuthenticationToken> |