예제 #1
0
 public MonthlySchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
     _days = new Dictionary<int, int>();
 }
예제 #2
0
 internal void OnDeserializedMethod(StreamingContext context)
 {
     timer = new ScheduleTimer();
 }
예제 #3
0
 public WeeklySchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
 }
예제 #4
0
 public OneTimeSchedule()
 {
     timer = new ScheduleTimer();
     _enabled = true;
 }
예제 #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);
            }
        }