Enum NotificationDispatchStrategy
- Namespace
- SimpleMediator
- Assembly
- SimpleMediator.dll
Defines how notifications are dispatched to handlers.
public enum NotificationDispatchStrategy
Fields
Parallel = 1Handlers execute concurrently. First error cancels remaining handlers (fail-fast). Uses CancellationTokenSource to cancel pending handlers on first failure.
ParallelWhenAll = 2Handlers execute concurrently. All handlers complete before returning. Errors are aggregated into a single MediatorError with details of all failures.
Sequential = 0Handlers execute one at a time, in registration order. First error stops execution (fail-fast). This is the default.