Expanding Webhook Events
Explore new webhook event options, detailed setup, specific content triggers, and improved logging and retry mechanisms.
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>(); } }
Sample Implementation
Creating an Event with the WebhookEventContentBase<TNotification, TEntity>
Usage
Last updated
Was this helpful?