示例#1
0
 public override void DoWork()
 {
     try
     {
         this.Progressing();
         SchedulingProvider.Instance().PurgeScheduleHistory();
         this.ScheduleHistoryItem.Succeeded = true;
         this.ScheduleHistoryItem.AddLogNote("Schedule history purged.");
     }
     catch (Exception exc)
     {
         this.ScheduleHistoryItem.Succeeded = false;
         this.ScheduleHistoryItem.AddLogNote("Schedule history purge failed." + exc.ToString());
         this.ScheduleHistoryItem.Succeeded = false;
         this.Errored(ref exc);
         Exceptions.Exceptions.LogException(exc);
     }
 }
示例#2
0
 public Hashtable GetSettings()
 {
     _ScheduleItemSettings = SchedulingProvider.Instance().GetScheduleItemSettings(this.ScheduleID);
     return(_ScheduleItemSettings);
 }