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.

◆ LoadSaga< TSaga >()

virtual TSaga Cqrs.Domain.SagaRepository< TAuthenticationToken >.LoadSaga< TSaga > ( Guid  id,
IList< ISagaEvent< TAuthenticationToken >>  events = null 
)
protectedvirtual

Calls IAggregateFactory.Create to get a, TSaga and then calls LoadSagaHistory<TSaga>.

Template Parameters
TSagaThe Type of ISaga<TAuthenticationToken>.
Parameters
idThe id of the TSaga to create.
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.
Type Constraints
TSaga :ISaga<TAuthenticationToken>