/// <summary> /// MVC appliction start event /// </summary> protected void Application_Start() { // Register areas and routes AreaRegistration.RegisterAllAreas(); UMClientConfig.Register(); RouteConfig.RegisterRoutes(RouteTable.Routes); WebApiConfig.Register(GlobalConfiguration.Configuration); // Register global filters FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); // Register scripts and css bundles BundleConfig.RegisterBundles(BundleTable.Bundles); // Register unity configuration BootstrapConfig.Register(); //Register providers ProvidersConfig.Register(); // Register custom flag enum model binder ModelBinders.Binders.DefaultBinder = new CustomModelBinder(); AsyncManagerConfig.Register(); ActiveSessionManager.StartTimer(spanTicks: TimeSpan.FromHours(6).Ticks); // token expire time is 6 hours }
/// <summary> /// MVC appliction start event /// </summary> protected void Application_Start() { // Register areas and routes AreaRegistration.RegisterAllAreas(); UMClientConfig.Register(); RouteConfig.RegisterRoutes(RouteTable.Routes); WebApiConfig.Register(GlobalConfiguration.Configuration); // Register global filters FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); // Register scripts and css bundles BundleConfig.RegisterBundles(BundleTable.Bundles); // Register unity configuration BootstrapConfig.Register(); //Register providers ProvidersConfig.Register(); // Register custom flag enum model binder ModelBinders.Binders.DefaultBinder = new CustomModelBinder(); AsyncManagerConfig.Register(); }