title: How to programmatically register a component that depends on a list of already registered components with Castle Windsor?
body: <p>I'm programmatically registering a group of services that all implement the same interface, IRule.  I have another service that looks like this:</p>
  
  <pre><code>public class MyService {
      private IEnumerable&lt;IRule&gt; _rules;
      public MyService(IEnumerable&lt;IRule&gt; rules){
          _rules = rules;
      }
  }
  </code></pre>
  
  <p>Hammett posted something that looked like what I wanted, <a href="http://hammett.castleproject.org/?p=257" rel="nofollow noreferrer">http://hammett.castleproject.org/?p=257</a>.  I changed the signature to IRule[] and tried the ArrayResolver trick in the post but that didn't work for me(note, it didn't break anything either).  </p>
  
  <p>Anyone know how to programmatically register a component like the code I posted above?</p>