private void InitializeClient(DriverApiHelperConfiguration configuration) { _apiClient = new HttpClient(); _apiClient.BaseAddress = configuration.ApiBase; _apiClient.DefaultRequestHeaders.Accept.Clear(); _apiClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); _notifyOfSmsPaymentStatusChangedUri = configuration.NotifyOfSmsPaymentStatusChangedURI; _notifyOfFastDeliveryOrderAddedUri = configuration.NotifyOfFastDeliveryOrderAddedURI; }
public DriverAPIHelper(DriverApiHelperConfiguration configuration) { InitializeClient(configuration); }