Interface IWebhookFiringService
Service for firing webhooks in response to events.
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookFiringService
Methods
View SourceFireAsync(IWebhook, string, object?, CancellationToken)
Fires a webhook asynchronously.
Declaration
Task FireAsync(IWebhook webhook, string eventAlias, object? payload, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebhook | webhook | The IWebhook to fire. |
| string | eventAlias | The alias of the event that triggered the webhook. |
| object | payload | The payload to send with the webhook request. |
| CancellationToken | cancellationToken | A cancellation token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous operation. |