private void ReadConnections(ConfigParams connections) { lock (_lock) { _items.Clear(); foreach (var entry in connections) { var item = new DiscoveryItem() { Key = entry.Key, Connection = ConnectionParams.FromString(entry.Value) }; _items.Add(item); } } }