public Receiver( IOptions <ReceiverOptions> options, ILogger <Receiver> logger, IHostApplicationLifetime hostApplicationLifetime, IUpdateConfig proxyConfigProvider) : base(hostApplicationLifetime, logger) { if (options is null) { throw new ArgumentNullException(nameof(options)); } _options = options.Value; // two requests per second after third failure _limiter = new Limiter(new Limit(2), 3); _proxyConfigProvider = proxyConfigProvider; }
public Reconciler(ICache cache, IUpdateConfig updateConfig, ILogger <Reconciler> logger) { _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _updateConfig = updateConfig ?? throw new ArgumentNullException(nameof(updateConfig)); _logger = logger; }