// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Events;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Notifications;
///
/// Called while publishing content but before content has been published. Cancel the operation to prevent the publish.
///
public sealed class ContentPublishingNotification : CancelableEnumerableObjectNotification
{
public ContentPublishingNotification(IContent target, EventMessages messages)
: base(target, messages)
{
}
public ContentPublishingNotification(IEnumerable target, EventMessages messages)
: base(target, messages)
{
}
///
/// Gets a enumeration of which are being published.
///
public IEnumerable PublishedEntities => Target;
}