Builder strategy & child containers

Jul 28, 2010 at 3:02 PM
Edited Jul 29, 2010 at 10:39 AM

I wrote some build strategies to make unity support resolution of my custom dependencies, then I registered them to all containers (main and child) as a part of UnityBuildStage.PreCreation stage. It works fine while I resolve types form main container and not while trying to resolve same type from child container. From my tests I figured that unity executes strategies registered to parent container before same strategy registered to child container. In my opinion this is unexpected behavior because container is an underline source of my dependencies and when I try to resolve from child container the child container should be asked first to resolve dependencies. I have tested this on unity 1 and on 2.