开发者

Where is MvcServiceLocator in ASP.NET MVC 3 RC?

开发者 https://www.devze.com 2023-01-24 06:25 出处:网络
I\'m trying to incorporate Ninject with my ASP.NET MVC 3 RC application. From the tutorials I found, I\'m supposed to set the ServiceLocator via

I'm trying to incorporate Ninject with my ASP.NET MVC 3 RC application.

From the tutorials I found, I'm supposed to set the ServiceLocator via

MvcServiceLocator.开发者_JAVA技巧SetCurrent

in the Global.asax file, but I can't seem to find this in ASP.NET MVC 3 RC. Has this been changed to something else?


The design for this feature has changed. The following blog post should answer your questions: http://bradwilson.typepad.com/blog/2010/10/service-location-pt5-idependencyresolver.html

0

精彩评论

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