This class wraps an instance of HttpClient configured with a handler that performs logging.
コード例 #1
0
 public QuestionService(HttpClientService factory, IHttpContextAccessor httpContextAccessor, ISurveysTokenService surveysTokenService)
 {
     _httpContextAccessor = httpContextAccessor;
     _httpClient = factory.GetHttpClient();
     _surveysTokenService = surveysTokenService;
     _cancellationToken = httpContextAccessor?.HttpContext?.RequestAborted ?? CancellationToken.None;
 }