This extension allows that bindings can define scopes. All dependencies can now define that they want to use this instance as their scope.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
CHANGELOG.md
LICENSE.txt
Ninject.Extensions.NamedScope.sln
README.md
appveyor.yml

README.md

Ninject.Extensions.NamedScope

Build status codecov NuGet Version NuGet Downloads

This Ninject Extension enables more powerful higher-level scoping mechanisms to be defined than those offered in the Kernel itself such as:

  • InParentScope to define a lifetime relative to that of the Request that triggered a resolution of a Binding
  • InCallScope to tie the lifetime to that of the Root Request [and constrain to a single instance within the hierarchy of the Request] being Resolved
  • DefinesNamedScope / InNamedScope to enable custom pooling rules
  • CreateNamedScope allows a Named Scope equivalent to one induced by DefinesNamedScope() to be generated programmatically (and Disposed as desired)

More information is found in the wiki: https://github.com/ninject/ninject.extensions.namedscope/wiki