title: Autofac: Resolve all instances of a Type
body: <p>Given the following registrations</p>
  
  <pre><code>builder.Register&lt;A&gt;().As&lt;I&gt;();
  builder.Register&lt;B&gt;().As&lt;I&gt;();
  builder.Register&lt;C&gt;().As&lt;I&gt;();
  
  var container = builder.Build();
  </code></pre>
  
  <p>I am looking to resolve all instances of type I as a <code>IEnumerable</code> (Array or Collection it doesn't matter).</p>
  
  <p>In Windsor I would have written the following.</p>
  
  <pre><code>foreach(I i in container.ResolveAll&lt;I&gt;())
  {
   ...
  }
  </code></pre>
  
  <p>I am migrating from Windsor to Autofac 1.4.4.561 but can't see the equivalent syntax.</p>