Interface IWebhookLogRepository
Represents a repository for WebhookLog entities.
Namespace: Umbraco.Cms.Core.Persistence.Repositories
Assembly: Umbraco.Core.dll
Syntax
public interface IWebhookLogRepository
Methods
View SourceCreateAsync(WebhookLog)
Creates a new webhook log entry.
Declaration
Task CreateAsync(WebhookLog log)
Parameters
| Type | Name | Description |
|---|---|---|
| WebhookLog | log | The webhook log to create. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |
DeleteByIds(int[])
Deletes webhook logs by their identifiers.
Declaration
Task DeleteByIds(int[] ids)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | ids | The identifiers of the logs to delete. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |
GetOlderThanDate(DateTime)
Gets webhook logs older than the specified date.
Declaration
Task<IEnumerable<WebhookLog>> GetOlderThanDate(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date | The cutoff date. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<WebhookLog>> | A collection of webhook logs older than the specified date. |
GetPagedAsync(Guid, int, int)
Gets paged webhook logs for a specific webhook.
Declaration
Task<PagedModel<WebhookLog>> GetPagedAsync(Guid webhookKey, int skip, int take)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | webhookKey | The unique key of the webhook. |
| int | skip | The number of records to skip. |
| int | take | The number of records to take. |
Returns
| Type | Description |
|---|---|
| Task<PagedModel<WebhookLog>> | A paged model of webhook logs for the specified webhook. |
GetPagedAsync(int, int)
Gets paged webhook logs.
Declaration
Task<PagedModel<WebhookLog>> GetPagedAsync(int skip, int take)
Parameters
| Type | Name | Description |
|---|---|---|
| int | skip | The number of records to skip. |
| int | take | The number of records to take. |
Returns
| Type | Description |
|---|---|
| Task<PagedModel<WebhookLog>> | A paged model of webhook logs. |