public TransportFailureRateHealthPolicy( IOptions <TransportFailureRateHealthPolicyOptions> policyOptions, IClock clock, IDestinationHealthUpdater healthUpdater) { _clock = clock ?? throw new ArgumentNullException(nameof(clock)); _policyOptions = policyOptions?.Value ?? throw new ArgumentNullException(nameof(policyOptions)); _healthUpdater = healthUpdater ?? throw new ArgumentNullException(nameof(healthUpdater)); }
public ConsecutiveFailuresHealthPolicy(IOptions <ConsecutiveFailuresHealthPolicyOptions> options, IDestinationHealthUpdater healthUpdater) { _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); _healthUpdater = healthUpdater ?? throw new ArgumentNullException(nameof(healthUpdater)); }