Class TaskWhenAllPublisher
- Namespace
- Caesar.NotificationPublishers
- Assembly
- Caesar.dll
Starts every handler immediately and awaits them all. Exceptions from all failing handlers are collected into a single AggregateException so no failure is lost.
public sealed class TaskWhenAllPublisher : INotificationPublisher
- Inheritance
-
TaskWhenAllPublisher
- Implements
- Inherited Members
Constructors
TaskWhenAllPublisher()
public TaskWhenAllPublisher()
Methods
Publish(IEnumerable<NotificationHandlerExecutor>, INotification, CancellationToken)
Invokes the handler executors for notification.
public 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.