Switch to INotificationHandler

This commit is contained in:
Mole
2021-03-25 14:51:00 +01:00
parent 18083b7155
commit c8471b096c
6 changed files with 82 additions and 94 deletions

View File

@@ -0,0 +1,17 @@
using Umbraco.Cms.Core.Compose;
using Umbraco.Cms.Core.Composing;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Infrastructure.Services.Notifications;
namespace Umbraco.Cms.Infrastructure.PublishedCache.Compose
{
public sealed class NotificationsComposer : ComponentComposer<NotificationsComponent>, ICoreComposer
{
public override void Compose(IUmbracoBuilder builder)
{
base.Compose(builder);
builder.AddNotificationHandler<LanguageSavedNotification, PublishedSnapshotServiceEventHandler>();
}
}
}