public ContractManagementAPI(IConfiguration config) { string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("ContractManagementAPI"); string baseUri = $"http://{apiHostAndPort}/api"; _client = RestService.For <IContractManagementAPI>(baseUri); }
public ContractManagementAPI(IHostingEnvironment env) { string apiHost = env.IsDevelopment() ? "localhost" : "apigateway"; int apiPort = 10000; string baseUri = $"http://{apiHost}:{apiPort}/api"; _client = RestService.For <IContractManagementAPI>(baseUri); }
public RateManagementController(IContractManagementAPI contractManagementAPI, ILogger <RateManagementController> logger) { _contractManagementAPI = contractManagementAPI; _logger = logger; _resiliencyHelper = new ResiliencyHelper(_logger); }