Events
Configuring event handlers in Umbraco UI Builder, the backoffice UI builder for Umbraco.
Registering event handlers
public class MyEntitySavingEventHandler : INotificationHandler<EntitySavingNotification> {
public void Handle(ContentPublishedNotification notification)
{
// Handle the event here
}
}builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddDeliveryApi()
.AddComposers()
.AddNotificationHandler<EntitySavingNotification, MyEntitySavingEventHandler>()
.Build();Repository events
EntitySavingNotification
EntitySavedNotification
EntityDeletingNotification
EntityDeletedNotification
SqlQueryBuildingNotification
SqlQueryBuiltNotification
Last updated
Was this helpful?