标签: structuremap unity-container
Unity中的StructureMap是否相同:
ServiceLocator.Current.GetAllInstances<IT>
尝试遵循this小模式......
答案 0 :(得分:6)
ObjectFactory.GetAllInstances();
见http://structuremap.sourceforge.net/RetrievingServices.htm#section3 了解更多详情