问题
Is there a method for Castle Windsor to inject multiple concrete implementations of a single interface into a constructor?
I want to do something like this:
class Some
{
public Some(IService[] services)
{
services.Each(s => s.DoSomething(this));
}
}
Note, at this level I do not have access to the IWindsorContainer
and would like to keep it that way.
回答1:
See http://hammett.castleproject.org/?p=257
来源:https://stackoverflow.com/questions/1473665/castle-windsor-dependency-injection-with-multiple-concrete-implementations