Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.

Further amends to return to booting application.
This commit is contained in:
Andy Butland
2020-08-23 23:36:48 +02:00
parent 2f22313ceb
commit 2cd91a5a54
108 changed files with 230 additions and 146 deletions

View File

@@ -23,9 +23,9 @@ namespace Umbraco.Web.HealthCheck.NotificationMethods
public EmailNotificationMethod(
ILocalizedTextService textService,
IRequestAccessor requestAccessor,
IOptionsSnapshot<GlobalSettings> globalSettings,
IOptions<GlobalSettings> globalSettings,
IHealthChecksSettings healthChecksSettings,
IOptionsSnapshot<ContentSettings> contentSettings)
IOptions<ContentSettings> contentSettings)
: base(healthChecksSettings)
{
var recipientEmail = Settings?["recipientEmail"]?.Value;