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