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