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