* Gather all notifications in Umbraco.Cms.Core.Notifications * Rename notifications to match convention * Move and rename missed notifications * Move the three remaining public notification into Umbraco.Cms.Core.Notifications
24 lines
1.3 KiB
C#
24 lines
1.3 KiB
C#
using Umbraco.Cms.Core.Composing;
|
|
using Umbraco.Cms.Core.DependencyInjection;
|
|
using Umbraco.Cms.Core.Events;
|
|
using Umbraco.Cms.Core.Notifications;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.PublishedCache.Compose
|
|
{
|
|
public sealed class NotificationsComposer : ICoreComposer
|
|
{
|
|
public void Compose(IUmbracoBuilder builder) =>
|
|
builder
|
|
.AddNotificationHandler<LanguageSavedNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<MemberDeletingNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<ContentRefreshNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<MediaRefreshNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<MemberRefreshNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<ContentTypeRefreshedNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<MediaTypeRefreshedNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<MemberTypeRefreshedNotification, PublishedSnapshotServiceEventHandler>()
|
|
.AddNotificationHandler<ScopedEntityRemoveNotification, PublishedSnapshotServiceEventHandler>()
|
|
;
|
|
}
|
|
}
|