Esempio n. 1
0
        public void LoadSettings()
        {
            try
            {
                JobsCleanupConfigurationViewProxy proxy = new JobsCleanupConfigurationViewProxy(JobsCleanupSession.ServiceDirectory, JobsCleanupSession.ServiceName);

                _bEnabled       = proxy.Enable;
                _UpdateInterval = proxy.GetCheckIntervalTimeSpan();
                _Expiry         = proxy.GetExpiryIntervalTimeSpan();
                _MaxRetries     = proxy.MaxRetry;

                if (proxy.Run >= DateTime.Now - new TimeSpan(0, 0, 5))
                {
                    _FlagRunNow = true;
                }
            }
            catch {
            }
        }