private static void InvokeWeatherForecastService() { var httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("Authorization", jwt.GetToken()); var client = new WeatherServiceClient( "https://localhost:44365/", httpClient); var forecast = client.WeatherForecastAsync().Result; foreach (var item in forecast) { Console.WriteLine($"{item.Summary}"); } }