I am starting to use Windsor, and I want to understand when to use container and kernel . For instance.
var c = new WindsorContainer(); c.Register(Component.For<ITt>().ImplementedBy<Tt>()); var tt = c.Resolve<ITt>();
Everything is in order and everything works, but here is also c.kernel , which can do the same as for?
var c = new WindsorConatiner(); c.kernel.Register(Component.For<ITt>().ImplementedBy<Tt>()); var tt = c.kernel.Resolve<ITt>();
Honestly, I don’t understand well if there is a difference between the "Strong> Container " and the " Core . In my head, does this sound like two names of the same thing in different IoC libraries?
PS I read this post , but still can’t understand why I need to leave two implementations of the same function here?
Update: I just found such a line in my code
c.Kernel.Resolver.AddSubResolver(new ArrayResolver(c.Kernel));
What reason was to do this through Kernel? I completely lost
source share