Files
Umbraco-CMS/src/Umbraco.Core/Events/INotificationHandler.cs
2021-09-08 11:19:52 -06:00

22 lines
621 B
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Umbraco.Cms.Core.Notifications;
namespace Umbraco.Cms.Core.Events
{
/// <summary>
/// Defines a handler for a notification.
/// </summary>
/// <typeparam name="TNotification">The type of notification being handled.</typeparam>
public interface INotificationHandler<in TNotification>
where TNotification : INotification
{
/// <summary>
/// Handles a notification
/// </summary>
/// <param name="notification">The notification</param>
void Handle(TNotification notification);
}
}