Пример #1
0
        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;
        }
Пример #2
0
 public DriverAPIHelper(DriverApiHelperConfiguration configuration)
 {
     InitializeClient(configuration);
 }