开发者

Ioc Containers used for MVC 3? [closed]

As it currently stands, this question is n开发者_Python百科ot a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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.

  1. List down the features I need for the application.
  2. 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)
  3. Choose the one I most familiar. Of course, it must fulfill the features I need in step (1).
  4. And focus on the product's features and functionality.

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜