Class WebhookLogService
Implements IWebhookLogService to manage webhook log entries.
Inheritance
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
public class WebhookLogService : IWebhookLogService
Constructors
View SourceWebhookLogService(IWebhookLogRepository, ICoreScopeProvider)
Initializes a new instance of the WebhookLogService class.
Declaration
public WebhookLogService(IWebhookLogRepository webhookLogRepository, ICoreScopeProvider coreScopeProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IWebhookLogRepository | webhookLogRepository | The webhook log repository. |
| ICoreScopeProvider | coreScopeProvider | The core scope provider. |
Methods
View SourceCreateAsync(WebhookLog)
Creates a new webhook log entry.
Declaration
public Task<WebhookLog> CreateAsync(WebhookLog webhookLog)
Parameters
| Type | Name | Description |
|---|---|---|
| WebhookLog | webhookLog | The WebhookLog to create. |
Returns
| Type | Description |
|---|---|
| Task<WebhookLog> | A task that represents the asynchronous operation, containing the created WebhookLog. |
Get(Guid, int, int)
Gets a paged collection of webhook logs for a specific webhook.
Declaration
public Task<PagedModel<WebhookLog>> Get(Guid webhookKey, int skip = 0, int take = 2147483647)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | webhookKey | The unique key of the webhook. |
| int | skip | The number of items to skip. |
| int | take | The number of items to take. |
Returns
| Type | Description |
|---|---|
| Task<PagedModel<WebhookLog>> | A task that represents the asynchronous operation, containing a paged model of WebhookLog objects. |
Get(int, int)
Gets a paged collection of all webhook logs.
Declaration
public Task<PagedModel<WebhookLog>> Get(int skip = 0, int take = 2147483647)
Parameters
| Type | Name | Description |
|---|---|---|
| int | skip | The number of items to skip. |
| int | take | The number of items to take. |
Returns
| Type | Description |
|---|---|
| Task<PagedModel<WebhookLog>> | A task that represents the asynchronous operation, containing a paged model of WebhookLog objects. |