Arnis Lapsa
Arnis Lapsa

Reputation: 47577

Unity & StructureMap

Are there equivalent for StructureMap of this in Unity:

ServiceLocator.Current.GetAllInstances<IT>

Trying to follow this little pattern...

Upvotes: 3

Views: 1729

Answers (1)

Sebastian
Sebastian

Reputation: 819

ObjectFactory.GetAllInstances();

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

Upvotes: 6

Related Questions