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.

◆ LoadSagaHistory< TSaga >()

void Cqrs.Akka.Domain.IAkkaSagaRepository< TAuthenticationToken >.LoadSagaHistory< TSaga > ( TSaga  saga,
IList< ISagaEvent< TAuthenticationToken >>  events = null,
bool  throwExceptionOnNoEvents = true 
)

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

Template Parameters
TSagaThe Type of ISaga<TAuthenticationToken>.
Parameters
sagaThe TSaga to rehydrate.
eventsA collection of IEvent<TAuthenticationToken> to replay on the retrieved ISaga<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 SagaNotFoundException<TSaga,TAuthenticationToken> if no aggregate events or provided or found in the IEventStore<TAuthenticationToken>.
Type Constraints
TSaga :ISaga<TAuthenticationToken>