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.

◆ Get< TAggregateRoot >()

TAggregateRoot Cqrs.Snapshots.SnapshotRepository< TAuthenticationToken >.Get< TAggregateRoot > ( Guid  aggregateId,
IList< IEvent< TAuthenticationToken >>  events = null 
)

Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot , First using TryRestoreAggregateFromSnapshot<TAggregateRoot>, otherwise via IAggregateRepository<TAuthenticationToken>.Get<TAggregateRoot> on Repository Then does rehydration.

Template Parameters
TAggregateRootThe Type of the IAggregateRoot<TAuthenticationToken>.
Parameters
aggregateIdThe identifier of the IAggregateRoot<TAuthenticationToken> to retrieve.
eventsA 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.

Implements Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>