Created
April 7, 2011 02:50
-
-
Save mikeobrien/906937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stevesmithblog.com/blog/how-do-i-use-structuremap-with-asp-net-mvc-3/ | |
return _container.GetAllInstances<object>().Where(s => s.GetType() == serviceType); | |
// Isn't this a better way to do it? | |
return _container.GetAllInstances(serviceType).Cast<object>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment