Stop() public method

public Stop ( ) : bool
return bool
示例#1
0
 private bool TryStopTask(ScheduledTask task)
 {
     if(task.Status == TaskStatus.Waiting) {
         // stop the timer
         task.Stop();
         return true;
     }
     else if(task.Status == TaskStatus.Stopped) {
         return true;
     }
     else {
         return false;
     }
 }
示例#2
0
 /// <summary>
 /// Stop a task, event if it's in wiping mode
 /// </summary>
 private bool ForceStopTask(ScheduledTask task)
 {
     return task.Stop();
 }