protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);


            RefreshScheduler.Start();
        }
Exemple #2
0
        private void RefreshScheduler_Tick(object sender, EventArgs e)
        {
            using (new AutoCursor())
            {
                try
                {
                    RefreshScheduler.Stop();

                    LoadRunningJobs();

                    RefreshDate.Text = DateTime.Now.ToString("yyyy.MM.dd HH:mm.ss");
                }
                finally
                {
                    RefreshScheduler.Start();
                }
            }
        }