团结与StructureMap

时间:2009-04-07 07:57:19

标签: structuremap unity-container

Unity中的StructureMap是否相同:

ServiceLocator.Current.GetAllInstances<IT>

尝试遵循this小模式......

1 个答案:

答案 0 :(得分:6)

ObjectFactory.GetAllInstances();

http://structuremap.sourceforge.net/RetrievingServices.htm#section3 了解更多详情