Exemplo n.º 1
0
 public void Close()
 {
     while (!_concurrentQueue.IsEmpty)
     {
         autoResetEvent.WaitOne(10000);
     }
     _isClosed = true;
     SendAsync(_queueCoder.Close(_name));
 }
Exemplo n.º 2
0
 public void Close()
 {
     while (!_concurrentQueue.IsEmpty)
     {
         ThreadHelper.Sleep(10);
     }
     _isClosed = true;
     SendAsync(_queueCoder.Close(_name));
 }
Exemplo n.º 3
0
 public void Close(int wait = 10000)
 {
     _isClosed = true;
     _clientSocket.Send(_queueCoder.Close(_name));
 }