New generic Deleting Notification to match the DeletedNotification and Saving/Saved ones

This commit is contained in:
Warren Buckley
2021-03-26 10:43:07 +00:00
parent fbcaa6adea
commit 03782bca86

View File

@@ -0,0 +1,17 @@
using System.Collections.Generic;
namespace Umbraco.Cms.Core.Events
{
public abstract class DeletingNotification<T> : CancelableEnumerableObjectNotification<T>
{
protected DeletingNotification(T target, EventMessages messages) : base(target, messages)
{
}
protected DeletingNotification(IEnumerable<T> target, EventMessages messages) : base(target, messages)
{
}
public IEnumerable<T> DeletedEntities => Target;
}
}