Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookEventCollectionBuilderExtensions

    Extension methods for WebhookEventCollectionBuilder.

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

    Methods

    View Source

    AddCms(WebhookEventCollectionBuilder, Action<WebhookEventCollectionBuilderExtensions.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, Boolean, 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.

    System.Boolean 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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX