Make the setters in NotifcationMethodBase readonly and make AllChecksSuccessful public
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Umbraco.Web.HealthCheck
|
||||
public class HealthCheckResults
|
||||
{
|
||||
private readonly Dictionary<string, IEnumerable<HealthCheckStatus>> _results;
|
||||
internal readonly bool AllChecksSuccessful;
|
||||
public readonly bool AllChecksSuccessful;
|
||||
|
||||
public HealthCheckResults(IEnumerable<HealthCheck> checks)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user