Esempio n. 1
0
        public IEnumerable <string> Get()
        {
            ConsulHttpClient client = new ConsulHttpClient();
            string           value  = client.DoGet(serviceName, "api/Health");

            return(new string[] { value });
        }
Esempio n. 2
0
        public string Call_A()
        {
            string result = _consulHttpClient.DoGet(serviceName: "consul-a", requestUrl: "api/A");

            return($"Call_A result -> {result}");
        }