-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Remo Gloor edited this page Jul 17, 2013
·
8 revisions
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 A
and B
. Normally you have no knowledge if the Resolve is coming via A
or 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.
#Binaries
- 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
- Walkthrough - Full worked example
- ContextPreservingGet
- BindInterfaceToBinding