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