AttemptToTerminate() public method

Attempts to terminate the passed in thread
public AttemptToTerminate ( Thread workerThread, System.TimeSpan timeout ) : bool
workerThread Thread The worker thread.
timeout System.TimeSpan The timeout.
return bool
Exemplo n.º 1
0
 /// <summary>
 /// Attempts to terminate the worker thread.
 /// </summary>
 /// <returns></returns>
 public virtual bool AttemptToTerminate()
 {
     return(_workerTerminate.AttemptToTerminate(WorkerThread, TimeSpan.Zero));
 }