Make the setters in NotifcationMethodBase readonly and make AllChecksSuccessful public

This commit is contained in:
Jeavon
2017-08-02 12:54:37 +01:00
parent 6aeb1a8845
commit fc861fecbc
2 changed files with 4 additions and 4 deletions

View File

@@ -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)
{

View File

@@ -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)
{