Collections 使用IoC自动连接集合

Collections 使用IoC自动连接集合,collections,inversion-of-control,autowired,Collections,Inversion Of Control,Autowired,任何人都知道是否存在能够处理此问题的IoC容器: 鉴于: ISomeInterfce<T> where T : Entity Impl1 : ISomeInterfce<Entity1> Impl2 : ISomeInterfce<Entity1> Impl3 : ISomeInterfce<Entity2> Impl4 : ISomeInterfce<Entity2> IsomeInterface,其中T:实体 Impl1:

任何人都知道是否存在能够处理此问题的IoC容器:

鉴于:

ISomeInterfce<T> where T : Entity

Impl1 : ISomeInterfce<Entity1>

Impl2 : ISomeInterfce<Entity1>

Impl3 : ISomeInterfce<Entity2>

Impl4 : ISomeInterfce<Entity2>
IsomeInterface,其中T:实体
Impl1:等轴干涉
Impl2:等轴干涉
Impl3:等轴干涉
Impl4:等轴干涉
我希望能够自动连接我的系统,并能够解决这样的问题

IoC.ResolveAll(typeof(ISomeInterfce<Entity1>)) 
IoC.ResolveAll(类型(IsomeInterface))
然后取回一批藏品
在所有支持此功能的
IsomeInterface
(我最喜欢的IoC容器)实现中,请签出:了解详细信息。

(我最喜欢的IoC容器)支持此功能,请签出:了解详细信息。

谢谢。但是你能把Autofac.Collections和Autofac.Autowiring结合起来吗?老实说,我不是100%确定,但我认为它会那样工作?谢谢,看起来很有希望。但是你能把Autofac.Collections和Autofac.Autowiring结合起来吗?老实说,我不是100%确定,但我想它会那样工作的?