View Source
Class WebhookService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class WebhookService : IWebhookService
Constructors
View Source
WebhookService(ICoreScopeProvider, IWebhookRepository, IEventMessagesFactory)
Declaration
public WebhookService(ICoreScopeProvider provider, IWebhookRepository webhookRepository, IEventMessagesFactory eventMessagesFactory)
Parameters
Methods
View Source
CreateAsync(IWebhook)
Declaration
public async Task<Attempt<IWebhook, WebhookOperationStatus>> CreateAsync(IWebhook webhook)
Parameters
Returns
View Source
DeleteAsync(Guid)
Declaration
public async Task<Attempt<IWebhook, WebhookOperationStatus>> DeleteAsync(Guid key)
Parameters
Type |
Name |
Description |
Guid |
key |
The unique key of the webhook.
|
Returns
View Source
GetAllAsync(Int32, Int32)
Declaration
public async Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take)
Parameters
Type |
Name |
Description |
System.Int32 |
skip |
|
System.Int32 |
take |
|
Returns
View Source
GetAsync(Guid)
Gets a webhook by its key.
Declaration
public async 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
public async Task<IEnumerable<IWebhook>> GetByAliasAsync(string alias)
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
Type |
Description |
Task<IEnumerable<IWebhook>> |
|
View Source
GetMultipleAsync(IEnumerable<Guid>)
Gets all webhooks with the given keys.
Declaration
public async 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
public async Task<Attempt<IWebhook, WebhookOperationStatus>> UpdateAsync(IWebhook webhook)
Parameters
Returns