Items that are registered only in child containers and not in parent container result in the following error when used as a dependency: Can't create component '<Type>' as it has dependencies to be satisfied.
class Test : ITest
public class Tester
public Tester(ITest testObject):
public class Main(IWindsorContainer container)
IWindsorContainer child = new WindsorContainer();
Tester t = child.Resolve<Tester>();
Since the parent did not contain a reference for ITest, Tester will not be able to resolve because the parent container does not have the dependency.
Log in to post a comment.