开发者

Where is MvcServiceLocator in ASP.NET MVC 3 RC?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜