Table of Contents

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

handlerExecutors IEnumerable<NotificationHandlerExecutor>

One executor per resolved handler, in registration order.

notification INotification

The notification being published.

cancellationToken CancellationToken

Cancellation token.

Returns

Task