public void Start()
 {
     if (!worker.IsBusy)
     {
         worker.RunWorkerAsync();
         IsRunning?.Invoke(true);
     }
 }
 public void Stop()
 {
     if (worker.IsBusy)
     {
         worker.CancelAsync();
         IsRunning?.Invoke(false);
     }
 }
예제 #3
0
 public PlanExecutionEvents OnIsRunning(bool isRunning)
 {
     IsRunning?.Invoke(this, new PlanIsRunningUpdatedEventArgs(backupPlan, isRunning));
     return(this);
 }