/// <summary>
 /// If the output should be updated automatically, add the next trigger time to
 /// the scheduler service.
 /// </summary>
 private void reschedule()
 {
     if ((mTimedValues.Count > 0) && (mUpdateToken == null) &&
         (mUpdateInterval.HasValue) && (mUpdateInterval.Value.Ticks > 0))
     {
         mUpdateToken = mSchedulerService.InvokeIn(mUpdateInterval.Value, Trigger);
     }
 }
 /// <summary>
 /// Unschedule the next trigger execution, if scheduled.
 /// </summary>
 private void unschedule()
 {
     if (mUpdateToken != null)
     {
         mSchedulerService.Remove(mUpdateToken);
         mUpdateToken = null;
     }
 }
示例#3
0
 public bool Remove(SchedulerToken schedulerToken)
 {
     this.InvokeInAction = null;
     this.InvokeAtAction = null;
     return(true);
 }