Method Publish
- Namespace
- Mediarion
- Assembly
- Mediarion.dll
Publish(IReadOnlyList<NotificationHandlerExecutor>, object, CancellationToken)
Runs the handlers.
Task Publish(IReadOnlyList<NotificationHandlerExecutor> handlers, object notification, CancellationToken cancellationToken)
Parameters
handlersIReadOnlyList<NotificationHandlerExecutor>The handlers to run.
notificationobjectThe notification.
cancellationTokenCancellationTokenCancels the operation.
Returns
- Task
A task that completes when the handlers are done.