2020-12-24 09:50:05 +11:00
|
|
|
|
using Umbraco.Core.DependencyInjection;
|
2019-01-03 21:00:28 +01:00
|
|
|
|
using Umbraco.Core.Composing;
|
|
|
|
|
|
|
2019-02-14 09:15:47 +01:00
|
|
|
|
namespace Umbraco.Web.Compose
|
2019-01-03 21:00:28 +01:00
|
|
|
|
{
|
2019-01-05 15:49:10 +01:00
|
|
|
|
public sealed class NotificationsComposer : ComponentComposer<NotificationsComponent>, ICoreComposer
|
2019-01-03 21:00:28 +01:00
|
|
|
|
{
|
2020-11-18 17:40:23 +00:00
|
|
|
|
public override void Compose(IUmbracoBuilder builder)
|
2019-01-03 21:00:28 +01:00
|
|
|
|
{
|
2020-11-18 17:40:23 +00:00
|
|
|
|
base.Compose(builder);
|
2019-01-05 15:49:10 +01:00
|
|
|
|
|
2020-11-18 17:40:23 +00:00
|
|
|
|
builder.Services.AddUnique<NotificationsComponent.Notifier>();
|
2019-01-03 21:00:28 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|