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

            var container = AutofacContainer.CreateDependenciesContainer();

            DependencyResolver.SetResolver(new AutofacDependencyResolver(container));

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }