Notification Handler
Learn about notification handlers lifetime, async notification handler and how to register the notification handlers.
public void Handle(TemplateSavingNotification notification)
{
notification.State["SomeKey"] = "Some Value Relevant to the \"after\" notification handler";
}
public void Handle(TemplateSavedNotification notification)
{
var valueFromSaving = notification.State["SomeKey"];
}Registering notification handlers
Registering notification handlers in the program class
Registering notification handlers in a composer
Async Notification Handler
Notification handler
Notification registration
Last updated
Was this helpful?