Пример #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            var myResolver = new MyDependencyResolver();
            DependencyResolver.SetResolver(myResolver);
        }
Пример #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            var myResolver = new MyDependencyResolver();

            DependencyResolver.SetResolver(myResolver);
        }