An open API service indexing awesome lists of open source software.

https://github.com/moonstorm/ninject.extensions.unitofwork


https://github.com/moonstorm/ninject.extensions.unitofwork

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Extension that enables the usage of unit-of-work patterns in non-web applications.
You could look at this as being the equivalent of InRequestScope from web environments in console applications and services.
The unit-of-work scopes are kept consistent across async calls and tasks.

#### Setup:
_kernel.Bind().To().InUnitOfWorkScope();

#### Usage:
using(UnitOfWorkScope.Create()){
// resolves, async/await, manual TPL ops, etc
}

**[Download from NuGet and enjoy!](https://www.nuget.org/packages/Ninject.Extensions.UnitOfWork/)**