This extension preserves the context over such factories. That means the parent of the new request is the factory request.
C#
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.ContextPreservation.sln
README.md
appveyor.yml

README.md

Ninject.Extensions.ContextPreservation

Build status codecov NuGet Version NuGet Downloads

This Ninject extension enables one to preserve contextual information pertaining to earlier requests that indirectly led to a given request in order to fulfil the following key objectives:

  • Enable more detailed tracing of Resolution failures
  • Enable richer Contextual Binding (e.g. being able to define rules looking further up the resolution hierarchy such as when a Factory enters the picture, including ones generated by Ninject.Extensions.Factory)
  • Enable richer Scoping rules (e.g. being able to use Ninject.Extensions.NamedScope's InCallScope for objects created by a Factory)

Documentation

https://github.com/ninject/Ninject.Extensions.ContextPreservation/wiki