public virtual bool SetProgress(int progress) { if (Operation == null) { throw new InvalidOperationException("SetProgress called when no operation was supposed to be in progress"); } _progress = progress; _cancelled = _cancelled || OutputHelper.ShouldCancel(); return(_cancelled); }
public virtual bool IterationComplete() { if (Operation == null) { throw new InvalidOperationException("IterationComplete called when no operation was supposed to be in progress"); } _iteration++; _progress = 0; _cancelled = _cancelled || OutputHelper.ShouldCancel(); return(_cancelled); }
public bool IterationComplete() { _cancelled = _cancelled || OutputHelper.ShouldCancel(); return(_cancelled); }
public bool SetProgress(int progress) { _cancelled = _cancelled || OutputHelper.ShouldCancel(); return(_cancelled); }
public bool IterationComplete() { return(OutputHelper.ShouldCancel()); }
public bool SetProgress(int progress) { return(OutputHelper.ShouldCancel()); }