Expanding Webhook Events
Creating your own webhook events
Introduction
Creating an event with the WebhookEventBase
Creating a Custom Webhook Event
public class YourCustomEvent : WebhookEventBase<YourNotificationType> { // Constructor and required overrides go here }public override string Alias => "YourUniqueAlias";[WebhookEvent("Your Event Name", "YourEventType")] public class YourCustomEvent : WebhookEventBase<YourNotificationType> { // Constructor and required overrides go here }using Umbraco.Cms.Core.Composing; public class CustomWebhookComposer : IComposer { public void Compose(IUmbracoBuilder builder) { builder.WebhookEvents().Add<YourCustomEvent>(); } }
Example Implementation
Creating an event with the WebhookEventContentBase<TNotification, TEntity>
Usage
Last updated
Was this helpful?