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