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.
Cqrs.Services.UnitOfWorkService< TAuthenticationToken > Class Template Reference

Provides a basic container to control how the IUnitOfWork<TAuthenticationToken> is accessed. More...

+ Inheritance diagram for Cqrs.Services.UnitOfWorkService< TAuthenticationToken >:

Public Member Functions

 UnitOfWorkService (IUnitOfWork< TAuthenticationToken > unitOfWork)
 Instantiate a new instance of UnitOfWorkService<TAuthenticationToken>. More...
 
bool SetCommitter (object commiter)
 Informs the service of the object that will be committing the UnitOfWork. More...
 
bool Commit (object commiter)
 Commits the UnitOfWork if the provided commiter is the Committer. More...
 

Properties

IUnitOfWork< TAuthenticationToken > UnitOfWork [get]
 Gets or set the IUnitOfWork<TAuthenticationToken>. More...
 
object Committer [get]
 Gets or set the object that wants to control the UnitOfWork. More...
 

Detailed Description

Provides a basic container to control how the IUnitOfWork<TAuthenticationToken> is accessed.