diff --git a/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs b/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs index 617e2804c5..d1856ee7d9 100644 --- a/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs +++ b/src/Umbraco.Web.BackOffice/Filters/EditorModelEventManager.cs @@ -12,38 +12,38 @@ namespace Umbraco.Web.BackOffice.Filters /// public sealed class EditorModelEventManager { - public static event TypedEventHandler> SendingContentModel; - public static event TypedEventHandler> SendingMediaModel; - public static event TypedEventHandler> SendingMemberModel; - public static event TypedEventHandler> SendingUserModel; + public static event TypedEventHandler> SendingContentModel; + public static event TypedEventHandler> SendingMediaModel; + public static event TypedEventHandler> SendingMemberModel; + public static event TypedEventHandler> SendingUserModel; - public static event TypedEventHandler>>> SendingDashboardSlimModel; + public static event TypedEventHandler>>> SendingDashboardSlimModel; - private static void OnSendingDashboardModel(ResultExecutedContext sender, EditorModelEventArgs>> e) + private static void OnSendingDashboardModel(ActionExecutedContext sender, EditorModelEventArgs>> e) { var handler = SendingDashboardSlimModel; handler?.Invoke(sender, e); } - private static void OnSendingUserModel(ResultExecutedContext sender, EditorModelEventArgs e) + private static void OnSendingUserModel(ActionExecutedContext sender, EditorModelEventArgs e) { var handler = SendingUserModel; handler?.Invoke(sender, e); } - private static void OnSendingContentModel(ResultExecutedContext sender, EditorModelEventArgs e) + private static void OnSendingContentModel(ActionExecutedContext sender, EditorModelEventArgs e) { var handler = SendingContentModel; handler?.Invoke(sender, e); } - private static void OnSendingMediaModel(ResultExecutedContext sender, EditorModelEventArgs e) + private static void OnSendingMediaModel(ActionExecutedContext sender, EditorModelEventArgs e) { var handler = SendingMediaModel; handler?.Invoke(sender, e); } - private static void OnSendingMemberModel(ResultExecutedContext sender, EditorModelEventArgs e) + private static void OnSendingMemberModel(ActionExecutedContext sender, EditorModelEventArgs e) { var handler = SendingMemberModel; handler?.Invoke(sender, e); @@ -54,7 +54,7 @@ namespace Umbraco.Web.BackOffice.Filters /// /// /// - internal static void EmitEvent(ResultExecutedContext sender, EditorModelEventArgs e) + internal static void EmitEvent(ActionExecutedContext sender, EditorModelEventArgs e) { if (e.Model is ContentItemDisplay) OnSendingContentModel(sender, new EditorModelEventArgs(e)); diff --git a/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs index 3cad31cdf7..4687d108a0 100644 --- a/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/OutgoingEditorModelEventAttribute.cs @@ -17,7 +17,7 @@ namespace Umbraco.Web.BackOffice.Filters } - private class OutgoingEditorModelEventFilter : IResultFilter + private class OutgoingEditorModelEventFilter : IActionFilter { private readonly IUmbracoContextAccessor _umbracoContextAccessor; @@ -34,7 +34,7 @@ namespace Umbraco.Web.BackOffice.Filters ?? throw new ArgumentNullException(nameof(backOfficeSecurityAccessor)); } - public void OnResultExecuted(ResultExecutedContext context) + public void OnActionExecuted(ActionExecutedContext context) { if (context.Result == null) return; @@ -54,8 +54,8 @@ namespace Umbraco.Web.BackOffice.Filters } } } - - public void OnResultExecuting(ResultExecutingContext context) + + public void OnActionExecuting(ActionExecutingContext context) { } }