public virtual void CancelRun() { if (this.runThread != null) { // Cancel Synchronous run only if on another thread if (this.runThread == Thread.CurrentThread) { throw new InvalidOperationException("May not CancelRun on same thread that is running the test"); } ThreadUtility.Kill(this.runThread); } }
public void Cancel() { ThreadUtility.Kill(this.thread); }