https://github.com/moonstorm/ninject.extensions.unitofwork
https://github.com/moonstorm/ninject.extensions.unitofwork
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/moonstorm/ninject.extensions.unitofwork
- Owner: MoonStorm
- License: mit
- Created: 2015-07-30T19:54:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T19:46:10.000Z (over 10 years ago)
- Last Synced: 2025-03-14T10:45:34.711Z (over 1 year ago)
- Language: C#
- Size: 813 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)**