Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 1.38 KB

README.md

File metadata and controls

14 lines (11 loc) · 1.38 KB

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