private IConnection SelectServerAndCreateConnection(string key) { ServerConfig server = _serverProvider.SelectServer(key.GetHashCode()); Debug.WriteLine($"Selected server {server}"); IConnection connection = _connectionResolver(server.EndPoint); return(connection); }
private ServerConfig GetServerInternal(string key) { return(_serverProvider.SelectServer(key.GetHashCode())); }