CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Domain.SagaRepository< TAuthenticationToken > Class Template Reference
+ Inheritance diagram for Cqrs.Domain.SagaRepository< TAuthenticationToken >:

Public Member Functions

 SagaRepository (IAggregateFactory sagaFactory, IEventStore< TAuthenticationToken > eventStore, IEventPublisher< TAuthenticationToken > publisher, ICorrelationIdHelper correlationIdHelper)
 
virtual void Save< TSaga > (TSaga saga, int? expectedVersion=null)
 
virtual TSaga Get< TSaga > (Guid sagaId, IList< ISagaEvent< TAuthenticationToken >> events=null)
 
virtual void LoadSagaHistory< TSaga > (TSaga saga, IList< ISagaEvent< TAuthenticationToken >> events=null, bool throwExceptionOnNoEvents=true)
 

Protected Member Functions

virtual void PublishEvent (ISagaEvent< TAuthenticationToken > @event)
 
virtual TSaga CreateSaga< TSaga > (Guid id)
 
virtual TSaga LoadSaga< TSaga > (Guid id, IList< ISagaEvent< TAuthenticationToken >> events=null)
 

Properties

IEventStore< TAuthenticationToken > EventStore [get]
 
IEventPublisher< TAuthenticationToken > Publisher [get]
 
IAggregateFactory SagaFactory [get]
 
ICorrelationIdHelper CorrelationIdHelper [get]