public IActionResult Index() { //call Hystrix-protected service List <Recommendations> recommendations = rs.Execute(); System.Console.WriteLine(recommendations.Count); //add results to property bag for view ViewData["Recommendations"] = recommendations; return(View()); }
public IActionResult Index() { //call Hystrix-protected service List <Recommendations> recommendations = rs.Execute(); //var client = new HttpClient(_handler); // var client = HttpClientFactory.Create(_handler,); // var response = client.GetAsync(url).Result; // System.Console.WriteLine(recommendations.Count); //add results to property bag for view ViewData["Recommendations"] = recommendations; return(View()); }