From c02a97b3df428637130389b85df392ddfae24171 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Thu, 30 Sep 2021 09:28:22 +0200 Subject: [PATCH] Fixes #11206 IEmailSender not registered in DI container --- src/Umbraco.Core/Composing/Current.cs | 3 +++ src/Umbraco.Web/Composing/Current.cs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/Umbraco.Core/Composing/Current.cs b/src/Umbraco.Core/Composing/Current.cs index a4ccd59f9d09..90faa59cecae 100644 --- a/src/Umbraco.Core/Composing/Current.cs +++ b/src/Umbraco.Core/Composing/Current.cs @@ -222,6 +222,9 @@ public static IVariationContextAccessor VariationContextAccessor public static IImageUrlGenerator ImageUrlGenerator => Factory.GetInstance(); + + public static IEmailSender EmailSender + => Factory.GetInstance(); #endregion } } diff --git a/src/Umbraco.Web/Composing/Current.cs b/src/Umbraco.Web/Composing/Current.cs index 14898d0c02d9..6adb479426a4 100644 --- a/src/Umbraco.Web/Composing/Current.cs +++ b/src/Umbraco.Web/Composing/Current.cs @@ -237,6 +237,8 @@ internal static Type DefaultRenderMvcControllerType public static IVariationContextAccessor VariationContextAccessor => CoreCurrent.VariationContextAccessor; + public static IEmailSender EmailSender => CoreCurrent.EmailSender; + #endregion } }