コード例 #1
0
        public async Task <ServiceInformation[]> FindServiceInstancesAsync(string name)
        {
            var x   = new ConsulRestClient();
            var res = await x.FindServiceAsync(name).ConfigureAwait(false);

            return(res);
        }
コード例 #2
0
        public async Task <ServiceInformation[]> FindServiceInstancesAsync(string name)
        {
            if (_useEbayFabio)
            {
                return(new[] { new ServiceInformation("http://localhost", 9999) });
            }

            var x   = new ConsulRestClient();
            var res = await x.FindServiceAsync(name).ConfigureAwait(false);

            return(res);
        }