public void Execute(object state)
        {
            try
            {
                Service.ServiceTruckRecord.ClearAllCameraSources(ConfigGlobal.TimeSpanLimit);

                _log.Info("Scheduler executed: (ClearAllCamSource)");
            }
            catch (Exception ex)
            {
                _log.Warn("Scheduler failed: (ClearAllCamSource)");
                _log.Error(ex);
            }
        }
        public void Execute(object state)
        {
            try
            {
                Service.ServiceTruckRecord.SyncAllCameraSources();

                _log.Info("Scheduler executed: (SyncAllCamSource)");
            }
            catch (Exception ex)
            {
                _log.Warn("Scheduler failed: (SyncAllCamSource)");
                _log.Error(ex);
            }
        }
Beispiel #3
0
        public void Execute(object state)
        {
            try
            {
                ConfigGlobal.Refresh();
                Schedule.Cache.RefreshCache();

                CameraSource.Cache.RefreshCache();

                ExamineSchedulerException();

                _log.Info("Scheduler executed: (RefreshCache)");
            }
            catch (Exception ex)
            {
                _log.Warn("Scheduler failed: (RefreshCache)");
                _log.Error(ex);
            }
        }