public override void Stop()
 {
     RFStatic.SetShutdown();
     _context.CancellationTokenSource.Cancel();
     _processingContext.RaiseEvent(this, new RFEvent {
         Timestamp = DateTime.Now
     });
     Thread.Sleep(1000);
     _workQueueMonitor.Shutdown();
     _processingContext.RaiseEvent(this, new RFEvent {
         Timestamp = DateTime.Now
     });
 }
 public override void Stop()
 {
     RFStatic.SetShutdown();
     _queueMonitor.Shutdown();
     _localContext.RaiseEvent(this, new RFEvent {
         Timestamp = DateTime.Now
     });
     _context.Shutdown();
 }