Clone this wiki locally
The Ninject Context Preservation Extension adds support for recording (and making available to Contextual Binding rules) the context pertaining to factories that call the Kernel to Resolve Requests.
For example, imagine that you have a factory
FooFactory that creates an
IFoo by resolving
IFoo from the Kernel. This factory gets injected into
B. Normally you have no knowledge if the Resolve is coming via
B. The Ninject Context Preservation Extension solves this problem by preserving the context, i.e. the
ParentRequest of the resolution Request will now refer to the
Request that was used to Resolve the
FooFactory earlier in proceedings.
- Current release: http://code.google.com/p/ninject2/downloads/list?q=Ninject.Extensions.ContextPreservation
- Latest build: https://teamcity.bbv.ch/viewLog.html?buildTypeId=bt20&buildId=lastSuccessful&tab=artifacts