public RetriveCallsService(IOptions <IntegrationServiceSettings> settings, IAuthentication authentication, IHttpClientFactory httpClientFactory) { _settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); _authentication = authentication ?? throw new ArgumentNullException(nameof(authentication)); _httpClientFactory = httpClientFactory; _context = new IntegrationServiceContext(settings); }
public StoreCallsService(IOptions <IntegrationServiceSettings> settings) { _context = new IntegrationServiceContext(settings); _settings = settings.Value; }