Table of Contents

Enum NotificationDispatchStrategy

Namespace
SimpleMediator
Assembly
SimpleMediator.dll

Defines how notifications are dispatched to handlers.

public enum NotificationDispatchStrategy

Fields

Parallel = 1

Handlers execute concurrently. First error cancels remaining handlers (fail-fast). Uses CancellationTokenSource to cancel pending handlers on first failure.

ParallelWhenAll = 2

Handlers execute concurrently. All handlers complete before returning. Errors are aggregated into a single MediatorError with details of all failures.

Sequential = 0

Handlers execute one at a time, in registration order. First error stops execution (fail-fast). This is the default.