public BookService(
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     ApiServiceHelper apiServiceHelper,
     IApiServiceRetryWithDelay apiServiceRetryWithDelay,
     ILogger <BookService> logger)
 {
     _logger                   = logger;
     _apiServiceHelper         = apiServiceHelper;
     _apiServiceRetryWithDelay = apiServiceRetryWithDelay;
     _clientFactory            = httpClientFactory;
     _context                  = httpContextAccessor.HttpContext;
 }
Exemple #2
0
 public BookService(
     ApplicationDbContext db,
     IHttpContextAccessor httpContextAccessor,
     IHttpClientFactory httpClientFactory,
     ApiServiceHelper apiServiceHelper,
     IApiServiceRetryWithDelay apiServiceRetryWithDelay,
     ILogger <BookService> logger,
     IOptions <AppConfiguration> appConfiguration)
 {
     _db                       = db;
     _logger                   = logger;
     _apiServiceHelper         = apiServiceHelper;
     _apiServiceRetryWithDelay = apiServiceRetryWithDelay;
     _clientFactory            = httpClientFactory;
     _context                  = httpContextAccessor.HttpContext;
     _appConfiguration         = appConfiguration;
 }