Move notifications to core instead of infrastructure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Copyright (c) Umbraco.
|
||||
// See LICENSE for more details.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
|
||||
namespace Umbraco.Cms.Core.Services.Notifications
|
||||
{
|
||||
public sealed class ContentPublishedNotification : EnumerableObjectNotification<IContent>
|
||||
{
|
||||
public ContentPublishedNotification(IContent target, EventMessages messages) : base(target, messages)
|
||||
{
|
||||
}
|
||||
|
||||
public ContentPublishedNotification(IEnumerable<IContent> target, EventMessages messages) : base(target, messages)
|
||||
{
|
||||
}
|
||||
|
||||
public IEnumerable<IContent> PublishedEntities => Target;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user