View Source
Interface IWebhookService
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookService
Methods
View Source
CreateAsync(IWebhook)
Declaration
Task<Attempt<IWebhook, WebhookOperationStatus>> CreateAsync(IWebhook webhook)
Parameters
Returns
View Source
DeleteAsync(Guid)
Declaration
Task<Attempt<IWebhook?, WebhookOperationStatus>> DeleteAsync(Guid key)
Parameters
| Type |
Name |
Description |
| Guid |
key |
The unique key of the webhook.
|
Returns
View Source
GetAllAsync(int, int)
Declaration
Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take)
Parameters
| Type |
Name |
Description |
| int |
skip |
|
| int |
take |
|
Returns
View Source
GetAsync(Guid)
Gets a webhook by its key.
Declaration
Task<IWebhook?> GetAsync(Guid key)
Parameters
| Type |
Name |
Description |
| Guid |
key |
The unique key of the webhook.
|
Returns
View Source
GetByAliasAsync(string)
Gets webhooks by event name.
Declaration
Task<IEnumerable<IWebhook>> GetByAliasAsync(string alias)
Parameters
| Type |
Name |
Description |
| string |
alias |
|
Returns
| Type |
Description |
| Task<IEnumerable<IWebhook>> |
|
View Source
GetMultipleAsync(IEnumerable<Guid>)
Gets all webhooks with the given keys.
Declaration
Task<IEnumerable<IWebhook?>> GetMultipleAsync(IEnumerable<Guid> keys)
Parameters
| Type |
Name |
Description |
| IEnumerable<Guid> |
keys |
|
Returns
| Type |
Description |
| Task<IEnumerable<IWebhook>> |
An enumerable list of IWebhook objects.
|
View Source
UpdateAsync(IWebhook)
Declaration
Task<Attempt<IWebhook, WebhookOperationStatus>> UpdateAsync(IWebhook webhook)
Parameters
Returns