//------------------------------------------------------------------------------------------------------------------------ internal void _InternalStop() { //clear queue lock (this) { requestQueueConsumer.Clear(); //.. } //clear clients lock (_Clients) if (_Clients.Count > 0) { foreach (var client in _Clients.Keys.ToArray()) { RemoveClient(client); } } }