Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 public void Cancel()
 {
     ThreadUtility.Kill(this.thread);
 }