Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookLogFactory

    Implements IWebhookLogFactory to create webhook log entries.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class WebhookLogFactory : IWebhookLogFactory

    Constructors

    View Source

    WebhookLogFactory()

    Declaration
    public WebhookLogFactory()

    Methods

    View Source

    CreateAsync(string, HttpRequestMessage, HttpResponseMessage?, int, Exception?, IWebhook, CancellationToken)

    Creates a new WebhookLog entry based on the webhook request and response.

    Declaration
    public Task<WebhookLog> CreateAsync(string eventAlias, HttpRequestMessage requestMessage, HttpResponseMessage? httpResponseMessage, int retryCount, Exception? exception, IWebhook webhook, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string eventAlias

    The alias of the event that triggered the webhook.

    HttpRequestMessage requestMessage

    The HTTP request message sent to the webhook endpoint.

    HttpResponseMessage httpResponseMessage

    The HTTP response message received, or null if no response was received.

    int retryCount

    The number of retry attempts made.

    Exception exception

    The exception that occurred during the request, or null if successful.

    IWebhook webhook

    The IWebhook that was fired.

    CancellationToken cancellationToken

    A cancellation token to cancel the operation.

    Returns
    Type Description
    Task<WebhookLog>

    A task that represents the asynchronous operation, containing the created WebhookLog.

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