Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

536 B
Raw Blame
namespace Grand.Mediator;

/// <summary>
///     Handles a published notification. Any number of handlers may subscribe to the same notification.
/// </summary>
public interface INotificationHandler<in TNotification> where TNotification : INotification
{
    /// <summary>
    ///     Handles the notification
    /// </summary>
    /// <param name="notification">Notification</param>
    /// <param name="cancellationToken">Cancellation token</param>
    Task Handle(TNotification notification, CancellationToken cancellationToken);
}