From fc861fecbca3660d2dc2336992b4f1571892c3a9 Mon Sep 17 00:00:00 2001 From: Jeavon Date: Wed, 2 Aug 2017 12:54:37 +0100 Subject: [PATCH] Make the setters in NotifcationMethodBase readonly and make AllChecksSuccessful public --- src/Umbraco.Web/HealthCheck/HealthCheckResults.cs | 2 +- .../NotificationMethods/NotificationMethodBase.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs b/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs index 25bbd26bbc..e5effbba7f 100644 --- a/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs +++ b/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs @@ -11,7 +11,7 @@ namespace Umbraco.Web.HealthCheck public class HealthCheckResults { private readonly Dictionary> _results; - internal readonly bool AllChecksSuccessful; + public readonly bool AllChecksSuccessful; public HealthCheckResults(IEnumerable checks) { diff --git a/src/Umbraco.Web/HealthCheck/NotificationMethods/NotificationMethodBase.cs b/src/Umbraco.Web/HealthCheck/NotificationMethods/NotificationMethodBase.cs index 7c442556a1..c0772daf56 100644 --- a/src/Umbraco.Web/HealthCheck/NotificationMethods/NotificationMethodBase.cs +++ b/src/Umbraco.Web/HealthCheck/NotificationMethods/NotificationMethodBase.cs @@ -11,11 +11,11 @@ namespace Umbraco.Web.HealthCheck.NotificationMethods Verbosity = verbosity; } - public bool Enabled { get; set; } + public bool Enabled { get; protected set; } - public bool FailureOnly { get; set; } + public bool FailureOnly { get; protected set; } - public HealthCheckNotificationVerbosity Verbosity { get; set; } + public HealthCheckNotificationVerbosity Verbosity { get; protected set; } protected bool ShouldSend(HealthCheckResults results) {