Skip to content

Instantly share code, notes, and snippets.

@crgrieve
Created October 30, 2021 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crgrieve/b3890fe4b32c8f4b322a0d19ae6a0e1f to your computer and use it in GitHub Desktop.
Save crgrieve/b3890fe4b32c8f4b322a0d19ae6a0e1f to your computer and use it in GitHub Desktop.
Notifications example for v9
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Umbraco.Cms.Core.DependencyInjection;
using Umbraco.Cms.Core.Notifications;
namespace UmbracoHackathon.Notifications
{
public static class NotificationsHandler
{
public static IUmbracoBuilder AddPublishNotifications(this IUmbracoBuilder builder)
{
builder.AddNotificationHandler<ContentPublishingNotification, DiscordNotification>();
return builder;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment