Changed healthcheck collection configuration to use a concrete type to ensure configuration settings are bound.

This commit is contained in:
Andy Butland
2022-07-08 15:33:22 +02:00
committed by Nikolaj
parent f37c02ea79
commit a91c81ee56
2 changed files with 4 additions and 4 deletions

View File

@@ -39,6 +39,6 @@ public class HealthChecksNotificationSettings
/// <summary>
/// Gets or sets a value for the collection of health checks that are disabled for notifications.
/// </summary>
public IEnumerable<DisabledHealthCheckSettings> DisabledChecks { get; set; } =
Enumerable.Empty<DisabledHealthCheckSettings>();
public List<DisabledHealthCheckSettings> DisabledChecks { get; set; } =
new List<DisabledHealthCheckSettings>();
}

View File

@@ -12,8 +12,8 @@ public class HealthChecksSettings
/// <summary>
/// Gets or sets a value for the collection of healthchecks that are disabled.
/// </summary>
public IEnumerable<DisabledHealthCheckSettings> DisabledChecks { get; set; } =
Enumerable.Empty<DisabledHealthCheckSettings>();
public List<DisabledHealthCheckSettings> DisabledChecks { get; set; } =
new List<DisabledHealthCheckSettings>();
/// <summary>
/// Gets or sets a value for the healthcheck notification settings.