/// <inheritdoc/> public override void DoWork() { try { // notification that the event is progressing this.Progressing(); SchedulingProvider.Instance().PurgeScheduleHistory(); // update the result to success since no exception was thrown 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); this.ScheduleHistoryItem.Succeeded = false; // notification that we have errored this.Errored(ref exc); // log the exception Exceptions.Exceptions.LogException(exc); } }
public Hashtable GetSettings() { _ScheduleItemSettings = SchedulingProvider.Instance().GetScheduleItemSettings(this.ScheduleID); return(_ScheduleItemSettings); }