New generic Deleting Notification to match the DeletedNotification and Saving/Saved ones
This commit is contained in:
17
src/Umbraco.Core/Events/DeletingNotification.cs
Normal file
17
src/Umbraco.Core/Events/DeletingNotification.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user