用于 MVC 3 的 Ioc 容器?
我想为 MVC3 实现一个 IoC 容器。据我所知,现在使用的四个主要容器是 Windsor、StructureMap、Unity 或 NinJect。
我意识到每个人都可能有不同的意见,但有人知道哪个容器是最常用的,哪个提供了最多的功能。我想尝试将四个列表缩小到至少两个列表。
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,专门为 ASP.NET MVC 3 实现一个 IoC 容器很奇怪。您在上面命名的所有容器都适用于所有类型的应用程序 - WPF、WCF 服务、Web 应用程序。您能说得更具体一些吗?
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?
每当我需要使用包括 IoC 容器在内的第三方库时,我总是遵循以下步骤。
谢谢。
Whenever I need to use third party libraries including IoC container, I always follow these steps.
Thanks.