Interface IWebhookRequestRepository
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookRequestRepository
Methods
View SourceCreateAsync(WebhookRequest)
Creates a webhook request in the current repository.
Declaration
Task<WebhookRequest> CreateAsync(WebhookRequest webhookRequest)
Parameters
Type | Name | Description |
---|---|---|
WebhookRequest | webhookRequest | The webhook you want to create. |
Returns
Type | Description |
---|---|
Task<WebhookRequest> | The created Webhook webhook |
DeleteAsync(WebhookRequest)
Deletes a webhook request in the current repository
Declaration
Task DeleteAsync(WebhookRequest webhookRequest)
Parameters
Type | Name | Description |
---|---|---|
WebhookRequest | webhookRequest | The webhook request to be deleted. |
Returns
Type | Description |
---|---|
Task |
GetAllAsync()
Gets all of the webhook requests in the current repository.
Declaration
Task<IEnumerable<WebhookRequest>> GetAllAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<WebhookRequest>> | A paged model of Webhook objects. |
UpdateAsync(WebhookRequest)
Update a webhook request in the current repository.
Declaration
Task<WebhookRequest> UpdateAsync(WebhookRequest webhookRequest)
Parameters
Type | Name | Description |
---|---|---|
WebhookRequest | webhookRequest | The webhook request you want to update. |
Returns
Type | Description |
---|---|
Task<WebhookRequest> | The updated WebhookRequest webhook |