Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 public ConsecutiveFailuresHealthPolicy(IOptions <ConsecutiveFailuresHealthPolicyOptions> options, IDestinationHealthUpdater healthUpdater)
 {
     _options       = options?.Value ?? throw new ArgumentNullException(nameof(options));
     _healthUpdater = healthUpdater ?? throw new ArgumentNullException(nameof(healthUpdater));
 }