Class WebhookSavingNotification
Notification published before webhooks are saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class WebhookSavingNotification : SavingNotification<IWebhook>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the save operation
by setting Cancel to true.
Constructors
View SourceWebhookSavingNotification(IEnumerable<IWebhook>, EventMessages)
Initializes a new instance of the WebhookSavingNotification class with multiple webhooks.
Declaration
public WebhookSavingNotification(IEnumerable<IWebhook> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IWebhook> | target | The webhooks being saved. |
| EventMessages | messages | The event messages collection. |
WebhookSavingNotification(IWebhook, EventMessages)
Initializes a new instance of the WebhookSavingNotification class with a single webhook.
Declaration
public WebhookSavingNotification(IWebhook target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebhook | target | The webhook being saved. |
| EventMessages | messages | The event messages collection. |