Table of Contents

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

handlerExecutors IEnumerable<NotificationHandlerExecutor>

One executor per resolved handler, in registration order.

notification INotification

The notification being published.

cancellationToken CancellationToken

Cancellation token.

Returns

Task