-
Notifications
You must be signed in to change notification settings - Fork 7
Home
bartelink edited this page Mar 22, 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. e.g. 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. This means that the ParentRequest
of the resolution Request will now refer to the Request that was used to create the factory initially.
#Binaries
- Current release: http://code.google.com/p/ninject2/downloads/list?q=Ninject.Extensions.ContextPreservation
- Latest build: http://teamcity.codebetter.com/viewLog.html?buildTypeId=bt245&buildId=lastSuccessful&tab=artifacts
- Walkthrough - Full worked example
- ContextPreservingGet
- BindInterfaceToBinding