Policy Injection extension

Feb 19, 2008 at 1:47 PM

I've written a policy injection extension for Unity. It combines both Dependency Injection and Policy Injection in a relatively simple way.

You can read the detials on my blog:


Hope this is useful to you, tips are also welcome!

Feb 19, 2008 at 2:16 PM
With yesterday's release, the IBuilderContext has been augmented to contain the BuildKey and the OriginalBuildKey as well as some other useful information.

The "typeFrom" will be available through the OriginalBuildKey as it is the key before any mapping occured.

Therefore, you don't need to create nor modify anything in the Unity source code in order to do what you intended.
Feb 19, 2008 at 2:29 PM

That's good news and just what I neeeded!

I will download it and try it out.
Feb 19, 2008 at 3:38 PM
I've created a new article based on yesterdays drop: