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.SagaUnitOfWork< TAuthenticationToken > Class Template Reference

This is a Unit of Work. This shouldn't normally be used as a singleton. More...

+ Inheritance diagram for Cqrs.Domain.SagaUnitOfWork< TAuthenticationToken >:

Public Member Functions

 SagaUnitOfWork (ISagaRepository< TAuthenticationToken > repository)
 
void Add< TSaga > (TSaga saga)
 Add an item into the IUnitOfWork<TAuthenticationToken> ready to be committed. More...
 
TSaga Get< TSaga > (Guid id, int? expectedVersion=null)
 Get an item from the IUnitOfWork<TAuthenticationToken> if it has already been loaded or get it from the IRepository<TAuthenticationToken>. More...
 
void Commit ()
 Commit any changed Saga<TAuthenticationToken> added to this IUnitOfWork<TAuthenticationToken> via Add<T> into the IRepository<TAuthenticationToken> More...
 

Detailed Description

This is a Unit of Work. This shouldn't normally be used as a singleton.