Changed healthcheck collection configuration to use a concrete type to ensure configuration settings are bound.
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user