コード例 #1
0
        protected void Application_Start()
        {
            ServiceConfig.RegisterServices();
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // --- Use implemented languages
            CultureHelper.SetImplementedCultures(ImplementedCultures.GetCultureCodes());

            // --- Start background tasks
            BackgroundTaskConfig.StartBackgroundProcessing();
        }
コード例 #2
0
 protected void Application_Stop()
 {
     // --- Stop background tasks
     BackgroundTaskConfig.StopBackgroundProcessing();
 }