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); } }
public Hashtable GetSettings() { _ScheduleItemSettings = SchedulingProvider.Instance().GetScheduleItemSettings(this.ScheduleID); return(_ScheduleItemSettings); }