コード例 #1
0
        void Application_Start(object sender, EventArgs e)
        {
            Logger.Init();
            AutofacHelper.Inject();

            // Code that runs on application startup
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
コード例 #2
0
ファイル: Global.asax.cs プロジェクト: shenqiangbin/blog
        void Application_Start(object sender, EventArgs e)
        {
            AutofacHelper.Inject();

            RegisterGlobalFilters(GlobalFilters.Filters);

            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }