elsa-core/src/modules/Elsa.Mediator/Contracts/IBackgroundEventPublisher.cs

12 lines
398 B
C#

namespace Elsa.Mediator.Contracts;
/// <summary>
/// Publish notifications to be processed asynchronously in the background.
/// </summary>
public interface IBackgroundEventPublisher
{
/// <summary>
/// Publish the specified notification using from a background service.
/// </summary>
Task PublishAsync(INotification notification, CancellationToken cancellationToken = default);
}