Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.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?

like image 713
Omar Avatar asked Feb 25 '23 20:02

Omar


1 Answers

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

like image 73
marcind Avatar answered Mar 07 '23 03:03

marcind