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