public ConsecutiveFailuresHealthPolicy(IOptions <ConsecutiveFailuresHealthPolicyOptions> options, IDestinationHealthUpdater healthUpdater) { _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); _healthUpdater = healthUpdater ?? throw new ArgumentNullException(nameof(healthUpdater)); }
public ConsecutiveFailuresHealthPolicy(IOptions <ConsecutiveFailuresHealthPolicyOptions> options, ILogger <ConsecutiveFailuresHealthPolicy> logger) { _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }