Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookLogService

    Implements IWebhookLogService to manage webhook log entries.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class WebhookLogService : IWebhookLogService

    Constructors

    View Source

    WebhookLogService(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 Source

    CreateAsync(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.

    View Source

    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.

    View Source

    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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX