Use correct ArgumentNullException parameter name (#436)

This commit is contained in:
Henk Mollema 2018-02-05 17:37:23 +01:00 committed by Andrew Stanton-Nurse
parent 6e387d72d2
commit e353005562
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ namespace Microsoft.Extensions.Diagnostics.HealthChecks
/// <param name="logger">A <see cref="ILogger{T}"/> that can be used to log events that occur during health check operations.</param>
public HealthCheckService(IEnumerable<IHealthCheck> healthChecks, ILogger<HealthCheckService> logger)
{
healthChecks = healthChecks ?? throw new ArgumentNullException(nameof(logger));
healthChecks = healthChecks ?? throw new ArgumentNullException(nameof(healthChecks));
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
// Scan the list for duplicate names to provide a better error if there are duplicates.