2021-03-25 14:51:00 +01:00
|
|
|
using Umbraco.Cms.Core.Composing;
|
|
|
|
|
using Umbraco.Cms.Core.DependencyInjection;
|
2021-04-20 12:17:11 +02:00
|
|
|
using Umbraco.Cms.Core.Events;
|
2021-05-11 14:33:49 +02:00
|
|
|
using Umbraco.Cms.Core.Notifications;
|
2021-03-25 14:51:00 +01:00
|
|
|
|
|
|
|
|
namespace Umbraco.Cms.Infrastructure.PublishedCache.Compose
|
|
|
|
|
{
|
2021-03-26 16:49:16 +01:00
|
|
|
public sealed class NotificationsComposer : ICoreComposer
|
2021-03-25 14:51:00 +01:00
|
|
|
{
|
2021-03-26 16:49:16 +01:00
|
|
|
public void Compose(IUmbracoBuilder builder) =>
|
2021-04-20 12:17:11 +02:00
|
|
|
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>()
|
|
|
|
|
;
|
2021-03-25 14:51:00 +01:00
|
|
|
}
|
|
|
|
|
}
|