Created
October 30, 2021 08:28
-
-
Save crgrieve/b3890fe4b32c8f4b322a0d19ae6a0e1f to your computer and use it in GitHub Desktop.
Notifications example for v9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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