public string Traffer(string serviceName) { var service = _consulServiceWrapper.GetService(serviceName); if (string.IsNullOrWhiteSpace(service)) { return("当前服务不存在"); } return(_consulServiceWrapper.Get($"http://{service}/WeatherForecast")); }
public string Traffer(string serviceName) { var service = _consulServiceWrapper.GetService(serviceName); return(_consulServiceWrapper.Get($"http://{service}/WeatherForecast")); }