Esempio n. 1
0
        public ContractManagementAPI(IConfiguration config)
        {
            string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("ContractManagementAPI");
            string baseUri        = $"http://{apiHostAndPort}/api";

            _client = RestService.For <IContractManagementAPI>(baseUri);
        }
Esempio n. 2
0
        public ContractManagementAPI(IHostingEnvironment env)
        {
            string apiHost = env.IsDevelopment() ? "localhost" : "apigateway";
            int    apiPort = 10000;
            string baseUri = $"http://{apiHost}:{apiPort}/api";

            _client = RestService.For <IContractManagementAPI>(baseUri);
        }
Esempio n. 3
0
 public RateManagementController(IContractManagementAPI contractManagementAPI, ILogger <RateManagementController> logger)
 {
     _contractManagementAPI = contractManagementAPI;
     _logger           = logger;
     _resiliencyHelper = new ResiliencyHelper(_logger);
 }