Oct 8, 2010 at 7:17 PM
Edited Oct 9, 2010 at 5:14 PM
I have a working prototype of a contextual binding engine like NInject's. When I register types with that engine
after I registered a default binding everything works fine. I get the default mapping as a fallback when no other mapping kicks in.
But when I register a default mapping after I registered types with the contextual binding engine I loose my contextual bindings and only the default mapping is used.
I use a custom IBuildPlanPolicy to implement this behavior and believed the container acts in the same way, but I can't find the right spot.
[EDIT] Solved the problem. My mistake was to use an IBuildPlanPolicy
while I should have used an IBuildKeyMappingPolicy instead. Works like a charm now :-)