Skip to content

MoonStorm/Ninject.Extensions.UnitOfWork

Repository files navigation

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<IService>().To<Service>().InUnitOfWorkScope();

Usage:

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

Download from NuGet and enjoy!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published