Example #1
0
        internal override string GetServerUrl(string serverUrl, string apiName, string session)
        {
            DnsConfig dnsConfig = ClusterManager.GetDnsConfigFromCache();

            if (dnsConfig == null)
            {
                return(serverUrl);
            }
            else
            {
                return(dnsConfig.GetBestVipUrl(serverUrl, apiName, session));
            }
        }