public void Stop()
 {
     Log.Debug("Requesting thread to stop");
     CancelSource.CancelAfter(500);
     WorkerThread.Join();
 }
 public virtual void Stop()
 {
     Log.Debug("Requesting thread to stop");
     CancelSource.CancelAfter(500);
 }