From daff9884a3d0ff0a90d0cde23b7565919647d5fe Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Fri, 8 Jul 2022 15:33:22 +0200 Subject: [PATCH] Changed healthcheck collection configuration to use a concrete type to ensure configuration settings are bound. --- .../Configuration/Models/HealthChecksNotificationSettings.cs | 4 ++-- src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs index 6e81c48c7c..30f6380e81 100644 --- a/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HealthChecksNotificationSettings.cs @@ -39,6 +39,6 @@ public class HealthChecksNotificationSettings /// /// Gets or sets a value for the collection of health checks that are disabled for notifications. /// - public IEnumerable DisabledChecks { get; set; } = - Enumerable.Empty(); + public List DisabledChecks { get; set; } = + new List(); } diff --git a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs index 6ae79e9743..638baeb562 100644 --- a/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs +++ b/src/Umbraco.Core/Configuration/Models/HealthChecksSettings.cs @@ -12,8 +12,8 @@ public class HealthChecksSettings /// /// Gets or sets a value for the collection of healthchecks that are disabled. /// - public IEnumerable DisabledChecks { get; set; } = - Enumerable.Empty(); + public List DisabledChecks { get; set; } = + new List(); /// /// Gets or sets a value for the healthcheck notification settings.