public InventoryManagementAPI(IConfiguration config, HttpClient httpClient) { string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("InventoryManagementAPI"); httpClient.BaseAddress = new Uri($"http://{apiHostAndPort}/api"); restClient = RestService.For <IInventoryManagementAPI>(httpClient); }
public InventoryManagementController(IWorkshopManagementAPI workshopManagementAPI, IInventoryManagementAPI inventoryManagementAPI, ILogger <InventoryManagementController> logger) { this.workshopManagementAPI = workshopManagementAPI; this.inventoryManagementAPI = inventoryManagementAPI; resiliencyHelper = new ResiliencyHelper(logger); }