Unity & StructureMap

Is there an equivalent for StructureMap of this in Unity:

ServiceLocator.Current.GetAllInstances<IT>

Trying to follow this little pattern ...

+3
source share
1 answer

ObjectFactory.GetAllInstances ();

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

+6
source

Source: https://habr.com/ru/post/1706025/


All Articles