I\'ve written an interface which is implemented by multiple classes. I want to write a Service class which will have all the registered implementations injected into its cto
I know this has already been answered, but I thought an example of how to add the CollectionResolver would be useful, so here it is.
Call AddSubResolver before registering the components in the container, e.g.
container = new WindsorContainer();
container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel));
Register the components as normal:
container.Register(
Component.For().ImplementedBy(),
Component.For().ImplementedBy(),
Component.For().ImplementedBy()
);