Example #1
0
        private string createUri(ImmutableList <APIHostPort> apiHostPorts, string endpoint)
        {
            var next      = _random.Next(apiHostPorts.Count);
            var elementAt = apiHostPorts.ElementAt(next);

            return(string.Format("http://{0}:{1}/{2}", elementAt.Host, elementAt.Port, endpoint));
        }