Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
 public Hashtable GetSettings()
 {
     _ScheduleItemSettings = SchedulingProvider.Instance().GetScheduleItemSettings(this.ScheduleID);
     return(_ScheduleItemSettings);
 }