示例#1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebAPIConfiguration.Register);
     FilterConfiguration.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfiguration.RegisterRoutes(RouteTable.Routes);
     BundleConfiguration.RegisterBundles(BundleTable.Bundles);
 }
示例#2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfiguration.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfiguration.RegisterRoutes(RouteTable.Routes);

            var container = MvcApplication.CreateContainer();

            DependencyResolver.SetResolver(new AutofacDependencyResolver(container));
        }
示例#3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FiltersConfiguration.RegisterGlobalFilters(GlobalFilters.Filters);

            RouteTable.Routes.RegisterRobotsTxt();

            RouteConfiguration.RegisterRoutes(RouteTable.Routes);
            BundleConfiguration.RegisterBundles(BundleTable.Bundles);
        }
 protected void Application_Start(object sender, EventArgs e)
 {
     RouteConfiguration.RegisterRoutes();
 }