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 SourceAddCms(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. |
AddCms(WebhookEventCollectionBuilder, Boolean)
Adds all available CMS webhook events.
Declaration
public static WebhookEventCollectionBuilder AddCms(this WebhookEventCollectionBuilder builder, bool onlyDefault = false)
Parameters
Type | Name | Description |
---|---|---|
WebhookEventCollectionBuilder | builder | The builder. |
System.Boolean | onlyDefault | If set to |
Returns
Type | Description |
---|---|
WebhookEventCollectionBuilder | The builder. |