Beispiel #1
0
 private void Start()
 {
     while (_workThread.ThreadState == ThreadState.Running)
     {
         PageRequest request;
         if (_requestQueue.TryDequeue(out request) && request != null)
         {
             RequestModule.ProcessRequest(_index, request);
         }
         else
         {
             Thread.Sleep(100);
         }
     }
 }