Exemplo n.º 1
0
 private void DispatchRequests(Command command)
 {
     lock (syncLockObject)
     {
         dispatchCommands.Enqueue(command);
         if (thread == null)
         {
             thread = new DispatchRequestThread(this, dispatchCommands, syncLockObject);
             thread.Start();
         }
     }
 }
Exemplo n.º 2
0
 private void DispatchRequests(Command command)
 {
     lock (syncLockObject)
     {
         dispatchCommands.Enqueue(command);
         if (thread == null)
         {
             thread = new DispatchRequestThread(this, dispatchCommands, syncLockObject);
             thread.Start();
         }
     }
 }