public override void DoWork()
        {
            try
            {
                //notification that the event is progressing
                Progressing();

                SchedulingProvider.Instance().PurgeScheduleHistory();

                //update the result to success since no exception was thrown
                ScheduleHistoryItem.Succeeded = true;
                ScheduleHistoryItem.AddLogNote("Schedule history purged.");
            }
            catch (Exception exc)
            {
                ScheduleHistoryItem.Succeeded = false;
                ScheduleHistoryItem.AddLogNote("Schedule history purge failed." + exc);
                ScheduleHistoryItem.Succeeded = false;

                //notification that we have errored
                Errored(ref exc);

                //log the exception
                Exceptions.Exceptions.LogException(exc);
            }
        }
Exemple #2
0
 public Hashtable GetSettings()
 {
     _ScheduleItemSettings = SchedulingProvider.Instance().GetScheduleItemSettings(this.ScheduleID);
     return(_ScheduleItemSettings);
 }
Exemple #3
0
 // dynamically create provider
 private static void CreateProvider()
 {
     objProvider = (SchedulingProvider)Reflection.CreateObject("scheduling");
 }
 // dynamically create provider
 private static void CreateProvider()
 {
     objProvider = (SchedulingProvider)Reflection.CreateObject( "scheduling" );
 }