views:

321

answers:

1

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.

+3  A: 

See http://hammett.castleproject.org/?p=257

maciejkow