Ioc Containers used for MVC 3? [closed]
I would like to implement an IoC container for MVC3. From what I can see the four main containers in use now are Windsor, StructureMap, Unity or NinJect.
I realize everyone is likely to have a different opinion but does anyone have an idea which container is the most used and which offers the most features. I would like to try and narrow down the list of four to at least a list of two.
Thanks in advance.
From what I know, implement an IoC container specifically for ASP.NET MVC 3 is weird. All containers you named above work with all types of apps - WPF, WCF services, web apps. Can you please be more specific?
Whenever I need to use third party libraries including IoC container, I always follow these steps.
- List down the features I need for the application.
- Create abstraction layer for better testability and easy to replace with better one in future if new feature is not fulfilled by that lib or whatever reason I want to change. (For MVC 3, there is already abstraction layer for IoC. So you don't need this step)
- Choose the one I most familiar. Of course, it must fulfill the features I need in step (1).
- And focus on the product's features and functionality.
Thanks.
精彩评论