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.

◆ LoadAggregateHistory< TAggregateRoot >()

void Cqrs.Akka.Snapshots.AkkaSnapshotRepository< TAuthenticationToken >.LoadAggregateHistory< TAggregateRoot > ( TAggregateRoot  aggregate,
IList< IEvent< TAuthenticationToken >>  events = null,
bool  throwExceptionOnNoEvents = true 
)

If events is null, loads the events from IEventStore<TAuthenticationToken>, checks for duplicates and then rehydrates the aggregate with the events.

Template Parameters
TAggregateRootThe Type of IAggregateRoot<TAuthenticationToken>.
Parameters
aggregateThe TAggregateRoot to rehydrate.
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.
throwExceptionOnNoEventsIf true will throw an instance of AggregateNotFoundException<TAggregateRoot,TAuthenticationToken> if no aggregate events or provided or found in the IEventStore<TAuthenticationToken>.

Implements Cqrs.Akka.Domain.IAkkaAggregateRepository< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>