public OrderManagementAPI(IConfiguration config, HttpClient httpClient, IOptions <AppSettings> appSettings) { _appSettings = appSettings; string ordersAPILocation = _appSettings.Value.OrdersAPIUrl; httpClient.BaseAddress = new Uri($"{ordersAPILocation}"); _orderManagementRestClient = RestService.For <IOrderManagementAPI>(httpClient); }
public HomeController(ILogger <HomeController> logger, IOrderManagementAPI orderManagementAPI) { _logger = logger; _orderManagementAPI = orderManagementAPI; }
public OrderManagementController(IOrderManagementAPI orderManagementAPI) { _orderManagementAPI = orderManagementAPI; }