Esempio n. 1
0
 public MonthlySchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
     _days = new Dictionary<int, int>();
 }
Esempio n. 2
0
 internal void OnDeserializedMethod(StreamingContext context)
 {
     timer = new ScheduleTimer();
 }
Esempio n. 3
0
 public WeeklySchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
 }
Esempio n. 4
0
 public OneTimeSchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
 }
Esempio n. 5
0
        private void StartTimer()
        {
            if(_hasMaximumExecutionTime && _maximumExecutionTime.TotalMilliseconds > 0) {
                if(timer != null) {
                    timer.StopTimer();
                }
                else {
                    timer = new ScheduleTimer();
                }

                timer.OnTimeEllapsed += OnTimeExpired;
                timer.StartTimer(_maximumExecutionTime);
            }
        }