Class WebhookSavedNotification
Notification published after webhooks have been saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class WebhookSavedNotification : SavedNotification<IWebhook>, IStatefulNotification, INotification
Remarks
This notification is published after webhooks have been successfully saved, allowing handlers to react for auditing or cache invalidation purposes.
Constructors
View SourceWebhookSavedNotification(IEnumerable<IWebhook>, EventMessages)
Initializes a new instance of the WebhookSavedNotification class with multiple webhooks.
Declaration
public WebhookSavedNotification(IEnumerable<IWebhook> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IWebhook> | target | The webhooks that were saved. |
| EventMessages | messages | The event messages collection. |
WebhookSavedNotification(IWebhook, EventMessages)
Initializes a new instance of the WebhookSavedNotification class with a single webhook.
Declaration
public WebhookSavedNotification(IWebhook target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebhook | target | The webhook that was saved. |
| EventMessages | messages | The event messages collection. |