Skip to content
Remo Gloor edited this page Jul 17, 2013 · 8 revisions

Introduction

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

Documentation

Clone this wiki locally