title: autofac Resolve all types of open generic type?
body: <p>I'm guessing there is no way to do something like the following with Autofac, to ctor inject an enumerable collection of open generic types? The various Handle types have dependencies, otherwise I would just dynamically build those up.  </p>
  
  <pre><code>    class EventOne : IEvent {...}
      class EventTwo : IEvent {...}
      class EventThree : IEvent {...}
      interface IHandleEvent&lt;T&gt; where T : IEvent {...}
      class HandleEventOne : IHandleEvent&lt;EventOne&gt; {...}
      class HandleEventTwo : IHandleEvent&lt;EventTwo&gt; {...}
      class HandleEventThree : IHandleEvent&lt;EventThree&gt; {...}
  
      builder.RegisterAssemblyTypes(myAssembies).AsClosedTypesOf(typeof(IHandleEvent&lt;&gt;));
      builder.RegisterType&lt;AService&gt;().As&lt;IAService&gt;();
  
  
      class AService : IAService
      {
        public AService(IEnumerable&lt;IHandleEvent&lt;IEvent&gt;&gt; handles)
        {...}
      }
  </code></pre>