Interface INotificationPublisher
- Namespace
- Caesar
- Assembly
- Caesar.Abstractions.dll
Strategy that decides how the handlers of a notification are invoked (sequentially, in parallel, fire-and-forget, ...).
public interface INotificationPublisher
Methods
Publish(IEnumerable<NotificationHandlerExecutor>, INotification, CancellationToken)
Invokes the handler executors for notification.
Task Publish(IEnumerable<NotificationHandlerExecutor> handlerExecutors, INotification notification, CancellationToken cancellationToken)
Parameters
handlerExecutorsIEnumerable<NotificationHandlerExecutor>One executor per resolved handler, in registration order.
notificationINotificationThe notification being published.
cancellationTokenCancellationTokenCancellation token.