Exemplo n.º 1
0
 private void QueueCheckerLoop()
 {
     while (true)
     {
         var operation = _queue.Get();
         if (operation != null)
         {
             ProcessOperation(operation);
             _queue.Done();
         }
         Thread.Sleep(5000);
     }
 }
Exemplo n.º 2
0
 private void QueueCheckerLoop()
 {
     while (true)
     {
         try
         {
             var operation = _queue.Get();
             if (operation != null)
             {
                 ProcessOperation(operation);
                 _queue.Done();
             }
             Thread.Sleep(5000);
         }
         catch
         {
             Logger.Log("Error with QueueCheckerLoop", LogLevel.Error);
         }
     }
 }