Interface IWebhookRepository
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookRepository
Methods
View SourceCreateAsync(IWebhook)
Gets all of the webhooks in the current database.
Declaration
Task<IWebhook> CreateAsync(IWebhook webhook)
Parameters
Type | Name | Description |
---|---|---|
IWebhook | webhook | The webhook you want to create. |
Returns
View SourceDeleteAsync(IWebhook)
Gets a webhook by key
Declaration
Task DeleteAsync(IWebhook webhook)
Parameters
Type | Name | Description |
---|---|---|
IWebhook | webhook | The webhook to be deleted. |
Returns
Type | Description |
---|---|
Task |
GetAllAsync(Int32, Int32)
Gets all of the webhooks in the current database.
Declaration
Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take)
Parameters
Type | Name | Description |
---|---|---|
System. |
skip | Number of entries to skip. |
System. |
take | Number of entries to take. |
Returns
Type | Description |
---|---|
Task<Paged |
A paged model of IWebhook objects. |
GetAsync(Guid)
Gets a webhook by key
Declaration
Task<IWebhook> GetAsync(Guid key)
Parameters
Type | Name | Description |
---|---|---|
Guid | key | The key of the webhook which will be retrieved. |
Returns
View SourceGetByAliasAsync(String)
Gets a webhook by key
Declaration
Task<PagedModel<IWebhook>> GetByAliasAsync(string alias)
Parameters
Type | Name | Description |
---|---|---|
System. |
alias | The alias of an event, which is referenced by a webhook. |
Returns
Type | Description |
---|---|
Task<Paged |
A paged model of IWebhook |
UpdateAsync(IWebhook)
Updates a given webhook
Declaration
Task UpdateAsync(IWebhook webhook)
Parameters
Type | Name | Description |
---|---|---|
IWebhook | webhook | The webhook to be updated. |
Returns
Type | Description |
---|---|
Task | The updated IWebhook webhook. |