Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookEventCollectionBuilderExtensions

    Extension methods for WebhookEventCollectionBuilder.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.DependencyInjection
    Assembly: Umbraco.Core.dll
    Syntax
    public static class WebhookEventCollectionBuilderExtensions

    Methods

    View Source

    AddCms(WebhookEventCollectionBuilder, Action<WebhookEventCollectionBuilderCms>)

    Adds CMS webhook events specified in the cmsBuilder action.

    Declaration
    public static WebhookEventCollectionBuilder AddCms(this WebhookEventCollectionBuilder builder, Action<WebhookEventCollectionBuilderExtensions.WebhookEventCollectionBuilderCms> cmsBuilder)
    Parameters
    Type Name Description
    WebhookEventCollectionBuilder builder

    The builder.

    Action<WebhookEventCollectionBuilderExtensions.WebhookEventCollectionBuilderCms> cmsBuilder

    The CMS builder.

    Returns
    Type Description
    WebhookEventCollectionBuilder

    The builder.

    View Source

    AddCms(WebhookEventCollectionBuilder, bool, WebhookPayloadType)

    Adds all available CMS webhook events.

    Declaration
    public static WebhookEventCollectionBuilder AddCms(this WebhookEventCollectionBuilder builder, bool onlyDefault = false, WebhookPayloadType payloadType = WebhookPayloadType.Legacy)
    Parameters
    Type Name Description
    WebhookEventCollectionBuilder builder

    The builder.

    bool onlyDefault

    If set to true only adds the default webhook events instead of all available.

    WebhookPayloadType payloadType

    The configured payload type.

    Returns
    Type Description
    WebhookEventCollectionBuilder

    The builder.

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