ninject/ninject.extensions.childkernel — pull request #6 by mikkelfish (2012-11-02 00:06:02+00:00)
Title: Created new ChildConstructorScorer

The default constructor scorer only looks at bindings in the child kernel. This can cause issues with overloaded constructors in which some of the bindings to be activated are in the parent kernel.

For example, in the added unit test Foo has an added constructor that takes only a string. Even if the parent context has Bar bound the standard scorer would still select the one with only a string, whereas the new child constructor scorer would select the one with both Bar and string because it look at all resolvable bindings.

I have made this the default scorer in the ChildKernel.