public ApplyApiClient(HttpClient httpClient,
                       ILogger <ApplyApiClient> logger,
                       IRoatpApplicationTokenService tokenService,
                       IMultipartFormDataService multipartFormDataService) : base(httpClient,
                                                                                  logger)
 {
     _multipartFormDataService = multipartFormDataService;
     _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", tokenService.GetToken(_httpClient.BaseAddress));
 }
Пример #2
0
 public RoatpOrganisationSummaryApiClient(HttpClient client, ILogger <RoatpOrganisationSummaryApiClient> logger, IRoatpApplicationTokenService tokenService)
     : base(client, logger)
 {
     _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", tokenService.GetToken(client.BaseAddress));
 }
 public RoatpGatewayCriminalComplianceChecksApiClient(HttpClient client, ILogger <RoatpGatewayCriminalComplianceChecksApiClient> logger, IRoatpApplicationTokenService tokenService)
     : base(client, logger)
 {
     _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", tokenService.GetToken(client.BaseAddress));
 }
 public RoatpClarificationApiClient(string baseUri, ILogger <RoatpClarificationApiClient> logger, IRoatpApplicationTokenService tokenService) : base(new HttpClient {
     BaseAddress = new Uri(baseUri)
 }, logger)
 {
     _httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", tokenService.GetToken(_httpClient.BaseAddress));
 }