public HealthCheckReportCollector( HealthChecksDb db, IHealthCheckFailureNotifier healthCheckFailureNotifier, IOptions <Settings> settings, ILogger <HealthCheckReportCollector> logger) { _db = db ?? throw new ArgumentNullException(nameof(db)); _healthCheckFailureNotifier = healthCheckFailureNotifier ?? throw new ArgumentNullException(nameof(healthCheckFailureNotifier)); _settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public HealthCheckReportCollector( HealthChecksDb db, IHealthCheckFailureNotifier healthCheckFailureNotifier, IOptions <Settings> settings, IHttpClientFactory httpClientFactory, ILogger <HealthCheckReportCollector> logger) { _db = db ?? throw new ArgumentNullException(nameof(db)); _healthCheckFailureNotifier = healthCheckFailureNotifier ?? throw new ArgumentNullException(nameof(healthCheckFailureNotifier)); _settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _httpClient = httpClientFactory.CreateClient(Keys.HEALTH_CHECK_HTTP_CLIENT_NAME); }
public HealthCheckReportCollector( HealthChecksDb db, IHealthCheckFailureNotifier healthCheckFailureNotifier, IOptions <Settings> settings, IHttpClientFactory httpClientFactory, ILogger <HealthCheckReportCollector> logger, ServerAddressesService serverAddressService, IEnumerable <IHealthCheckCollectorInterceptor> interceptors) { _db = db ?? throw new ArgumentNullException(nameof(db)); _healthCheckFailureNotifier = healthCheckFailureNotifier ?? throw new ArgumentNullException(nameof(healthCheckFailureNotifier)); _settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _serverAddressService = serverAddressService ?? throw new ArgumentNullException(nameof(serverAddressService)); _interceptors = interceptors ?? Enumerable.Empty <IHealthCheckCollectorInterceptor>(); _httpClient = httpClientFactory.CreateClient(Keys.HEALTH_CHECK_HTTP_CLIENT_NAME); }