views:

649

answers:

1

Are there equivalent for StructureMap of this in Unity:

ServiceLocator.Current.GetAllInstances<IT>

Trying to follow this little pattern...

+2  A: 

Hello,

ObjectFactory.GetAllInstances<interface>();

see http://structuremap.sourceforge.net/RetrievingServices.htm#section3 for more details

Sebastian Sedlak
I understood what was my problem. Thanks for "effort". :)
Arnis L.