示例#1
0
        private IConnection SelectServerAndCreateConnection(string key)
        {
            ServerConfig server = _serverProvider.SelectServer(key.GetHashCode());

            Debug.WriteLine($"Selected server {server}");
            IConnection connection = _connectionResolver(server.EndPoint);

            return(connection);
        }
示例#2
0
 private ServerConfig GetServerInternal(string key)
 {
     return(_serverProvider.SelectServer(key.GetHashCode()));
 }