Пример #1
0
 private void DispatchRequests(Command command)
 {
     lock (syncLockObject)
     {
         dispatchCommands.Enqueue(command);
         if (thread == null)
         {
             thread = new DispatchRequestThread(this, dispatchCommands, syncLockObject);
             thread.Start();
         }
     }
 }
Пример #2
0
 private void DispatchRequests(Command command)
 {
     lock (syncLockObject)
     {
         dispatchCommands.Enqueue(command);
         if (thread == null)
         {
             thread = new DispatchRequestThread(this, dispatchCommands, syncLockObject);
             thread.Start();
         }
     }
 }