For a simple web application, what service locator library you prefer to use?
For a simple application that use asp.net mvc 3 and .net-4, what service loca开发者_运维知识库tor application is preferred, with performance concern in mind?
See these questions:
- IOC container working with asp.net mvc 2.0
- Good IOC Frameworks to use with asp.net mvc?
- ASP.NET MVC + fluent nNibernate, what IoC tool?
About performance, none of the main IoC containers have performance issues in a web application.
I would take a look at MEF as it's included on .NET 4.0 and there are several implementations of modularity on MVC using it.
You don't need ServiceLocator for a simple application. It just works out of the box. Like in previous versions of ASP.NET MVC.
精彩评论