AB3677 - Removed the Core.Composing.Current.. Moved stuff to Web.Composing.Current and injected more stuff.

This commit is contained in:
Bjarke Berg
2020-01-07 13:08:21 +01:00
parent 58f9b48e16
commit d2443ea4c0
113 changed files with 451 additions and 386 deletions

View File

@@ -5,6 +5,7 @@ using System.Threading.Tasks;
using Umbraco.Core;
using Umbraco.Web.Composing;
using Umbraco.Core.Configuration;
using Umbraco.Core.Configuration.HealthChecks;
using Umbraco.Core.Logging;
using Umbraco.Core.Services;
@@ -18,7 +19,7 @@ namespace Umbraco.Web.HealthCheck.NotificationMethods
private readonly ILogger _logger;
private readonly IGlobalSettings _globalSettings;
public EmailNotificationMethod(ILocalizedTextService textService, IRuntimeState runtimeState, ILogger logger, IGlobalSettings globalSettings)
public EmailNotificationMethod(ILocalizedTextService textService, IRuntimeState runtimeState, ILogger logger, IGlobalSettings globalSettings, IHealthChecks healthChecks): base(healthChecks)
{
var recipientEmail = Settings["recipientEmail"]?.Value;
if (string.IsNullOrWhiteSpace(recipientEmail))