DotNetWorkQueue.Queue.StopThread.StopThread C# (CSharp) Method

StopThread() public method

Initializes a new instance of the StopThread class.
public StopThread ( IAbortWorkerThread abortWorkerThread, WaitForThreadToFinish waitForThreadToFinish ) : System.Threading
abortWorkerThread IAbortWorkerThread The abort worker thread.
waitForThreadToFinish WaitForThreadToFinish The wait for thread to finish.
return System.Threading
        public StopThread(IAbortWorkerThread abortWorkerThread,
            WaitForThreadToFinish waitForThreadToFinish)
        {
            Guard.NotNull(() => abortWorkerThread, abortWorkerThread);
            Guard.NotNull(() => waitForThreadToFinish, waitForThreadToFinish);

            _abortWorkerThread = abortWorkerThread;
            _waitForThreadToFinish = waitForThreadToFinish; 
        }