From 03782bca866460ea71f029007a30546e88c22cd6 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Fri, 26 Mar 2021 10:43:07 +0000 Subject: [PATCH] New generic Deleting Notification to match the DeletedNotification and Saving/Saved ones --- src/Umbraco.Core/Events/DeletingNotification.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Umbraco.Core/Events/DeletingNotification.cs diff --git a/src/Umbraco.Core/Events/DeletingNotification.cs b/src/Umbraco.Core/Events/DeletingNotification.cs new file mode 100644 index 0000000000..c4e6046652 --- /dev/null +++ b/src/Umbraco.Core/Events/DeletingNotification.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +namespace Umbraco.Cms.Core.Events +{ + public abstract class DeletingNotification : CancelableEnumerableObjectNotification + { + protected DeletingNotification(T target, EventMessages messages) : base(target, messages) + { + } + + protected DeletingNotification(IEnumerable target, EventMessages messages) : base(target, messages) + { + } + + public IEnumerable DeletedEntities => Target; + } +}