Updated healthchecks to show a link to documentation instead of trying to fix something that can often not be fixed automatically.

This commit is contained in:
Bjarke Berg
2021-02-03 07:42:56 +01:00
parent 04058fb9c6
commit 8624a246ba
55 changed files with 745 additions and 459 deletions

View File

@@ -11,13 +11,11 @@ using Umbraco.Core;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.Extensions;
using Umbraco.Core.Configuration.Models;
using Umbraco.Core.HealthCheck;
using Umbraco.Core.HealthChecks;
using Umbraco.Core.HealthChecks.NotificationMethods;
using Umbraco.Core.Logging;
using Umbraco.Core.Scoping;
using Umbraco.Core.Sync;
using Umbraco.Infrastructure.HealthCheck;
using Umbraco.Web.HealthCheck;
using Umbraco.Web.HealthCheck.NotificationMethods;
namespace Umbraco.Infrastructure.HostedServices
{
@@ -118,10 +116,10 @@ namespace Umbraco.Infrastructure.HostedServices
.Distinct()
.ToArray();
IEnumerable<Core.HealthCheck.HealthCheck> checks = _healthChecks
IEnumerable<HealthCheck> checks = _healthChecks
.Where(x => disabledCheckIds.Contains(x.Id) == false);
var results = new HealthCheckResults(checks);
var results = await HealthCheckResults.Create(checks);
results.LogResults();
// Send using registered notification methods that are enabled.