diff --git a/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/WellKnownHealthChecks.cs b/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/WellKnownHealthChecks.cs index 490f32a8a..93f5a7efa 100644 --- a/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/WellKnownHealthChecks.cs +++ b/src/Digdir.Domain.Dialogporten.Infrastructure/HealthChecks/WellKnownHealthChecks.cs @@ -19,9 +19,9 @@ public WellKnownEndpointsHealthCheck( ILogger logger, IConfiguration configuration) { - _httpClientFactory = httpClientFactory; - _logger = logger; - _configuration = configuration; + _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); + _logger = logger ?? throw new ArgumentNullException(nameof(logger)); + _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); } public async Task CheckHealthAsync(