ResolveAll<T>() does not resolve when called with registered open generics
description
<p>Hello</p>
<p> </p>
<p>I have the following config:</p>
<p> </p>
<p> <typeAliases></p>
<p> <typeAlias alias="singleton"</p>
<p> type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity" /></p>
<p> <typeAlias alias="transient"</p>
<p> type="Microsoft.Practices.Unity.TransientLifetimeManager, Microsoft.Practices.Unity" /></p>
<p> <typeAlias alias="IApplicationModule"</p>
<p> type="Framework.Interfaces.Snapin.IApplicationModule`1, Framework.Interfaces"/></p>
<p> </typeAliases></p>
<p> <containers></p>
<p> <container></p>
<p> <types></p>
<p> <!-- Internal Mapping: Module from the Framework.Common.dll assembly --></p>
<p> <type type="IApplicationModule"</p>
<p> mapTo="Framework.Common.Module, Framework.Common" name="Module"></p>
<p> <lifetime type="transient" /></p>
<p> </type></p>
<p> <type type="IApplicationModule"</p>
<p> mapTo="Framework.Common.Module2, Framework.Common.Tests" name="Module2"></p>
<p> <lifetime type="transient" /></p>
<p> </type></p>
<p> </types></p>
<p> </container></p>
<p> </containers></p>
<p> </p>
<p>When I configure unity with this application file the Resolve("Module") or Resolve("Module2") successfully returns the modules. But when I do ResolveAll<IApplicationModule<MyType>>() then unity does not resolve the types and returns null instead. What am I doing wrong? It's really driving me crazy...</p>
<p> </p>
<p>When I manually register my types on the container with RegisterType<IApplicationModule<MyType>, Module>("Module") and RegisterType<IApplicationModule<MyType>, Module2>("Module2") ResolveAll works!! Is this an implementation bug?</p>
<p> </p>
<p>Thanks for your help</p>
<p> </p>
<p>Daniel</p>