public void RemoveServer(string baseUrl) { lock (_lck) { ServerMap.RemoveAll(m => m.BaseUrl == baseUrl); } }
public void AddServer(string baseUrl, string[] ips) { lock (_lck) { ServerMap.RemoveAll(m => m.BaseUrl == baseUrl); foreach (var ip in ips) { var svr = new Server(); svr.BaseUrl = baseUrl; svr.ClientIp = ip; ServerMap.Add(svr); } } }