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
Type | Description |
---|---|
Task<IWebhook> | The created IWebhook webhook |
DeleteAsync(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.Int32 | skip | Number of entries to skip. |
System.Int32 | take | Number of entries to take. |
Returns
Type | Description |
---|---|
Task<PagedModel<IWebhook>> | 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
Type | Description |
---|---|
Task<IWebhook> | The IWebhook webhook with the given key. |
GetByAliasAsync(String)
Gets a webhook by key.
Declaration
Task<PagedModel<IWebhook>> GetByAliasAsync(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | The alias of an event, which is referenced by a webhook. |
Returns
Type | Description |
---|---|
Task<PagedModel<IWebhook>> | A paged model of IWebhook. |
GetByIdsAsync(IEnumerable<Guid>)
Gets webhooks by keys.
Declaration
virtual Task<PagedModel<IWebhook>> GetByIdsAsync(IEnumerable<Guid> keys)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Guid> | keys | The alias of an event, which is referenced by a webhook. |
Returns
Type | Description |
---|---|
Task<PagedModel<IWebhook>> | 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. |