Skip to content

This extension allows that bindings can define scopes. All dependencies can now define that they want to use this instance as their scope.

License

Notifications You must be signed in to change notification settings

ninject/Ninject.Extensions.NamedScope

Repository files navigation

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

About

This extension allows that bindings can define scopes. All dependencies can now define that they want to use this instance as their scope.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages