public VehicleManagementAPI(IConfiguration config, HttpClient httpClient) { string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("VehicleManagementAPI"); httpClient.BaseAddress = new Uri($"http://{apiHostAndPort}/api"); _restClient = RestService.For <IVehicleManagementAPI>(httpClient); }
public VehicleManagementAPI(IConfiguration config) { string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("VehicleManagementAPI"); string baseUri = $"http://{apiHostAndPort}/api"; _client = RestService.For <IVehicleManagementAPI>(baseUri); }
public VehicleInsuranceManagement(IVehicleManagementAPI vehicleManagementAPI, ILogger <VehicleInsuranceManagement> logger) { _vehicleManagementAPI = vehicleManagementAPI; _logger = logger; _resiliencyHelper = new ResiliencyHelper(_logger); }
public VehicleManagementController(IVehicleManagementAPI vehicleManagementAPI, ICustomerManagementAPI customerManagementAPI, ILogger <VehicleManagementController> logger) { _vehicleManagementAPI = vehicleManagementAPI; _customerManagementAPI = customerManagementAPI; _logger = logger; }
public VehicleOwnerManagementController(IVehicleManagementAPI vehicleManagementAPI, ILogger <VehicleOwnerManagementController> logger) { _vehicleManagementAPI = vehicleManagementAPI; _logger = logger; _resiliencyHelper = new ResiliencyHelper(_logger); }
public VehicleManagementAPI(IHostingEnvironment env, HttpClient httpClient) { string apiHost = env.IsDevelopment() ? "localhost" : "apigateway"; int apiPort = 10000; httpClient.BaseAddress = new System.Uri($"http://{apiHost}:{apiPort}/api"); _client = RestService.For <IVehicleManagementAPI>(httpClient); }
public VehicleManagementAPI(IHostingEnvironment env) { string apiHost = env.IsDevelopment() ? "localhost" : "apigateway"; int apiPort = 10000; string baseUri = $"http://{apiHost}:{apiPort}/api"; _client = RestService.For <IVehicleManagementAPI>(baseUri); }
public WorkshopManagementController(ILogger <WorkshopManagementController> logger, ICustomerManagementAPI customerAPI, IVehicleManagementAPI vehicleAPI, IWorkshopManagementAPI workshopAPI) { _logger = logger; _customerAPI = customerAPI; _vehicleAPI = vehicleAPI; _workshopAPI = workshopAPI; this._policy = GetRetryPolicy();; }
public VehicleManagementAPI(IConfiguration config, HttpClient httpClient) { string apiHostAndPort = config.GetSection("APIServiceLocations").GetValue <string>("VehicleManagementAPI"); httpClient.BaseAddress = new Uri($"http://{apiHostAndPort}/api"); _restClient = RestService.For <IVehicleManagementAPI>( httpClient, new RefitSettings { ContentSerializer = new NewtonsoftJsonContentSerializer() }); }