public ConsulService[] GetServices(string serviceName) { var response = ConsulClient.GetServices(serviceName); return(response.Select(x => new ConsulService(x)).ToArray()); }
public ConsulService GetService(string serviceName, string dtoName) { var response = ConsulClient.GetService(serviceName, dtoName); return(new ConsulService(response)); }