Table of Contents

Enum DispatchMiddlewareStage

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Defines the stages in the dispatch middleware pipeline with their execution order.

public enum DispatchMiddlewareStage
Extension Methods

Fields

Authentication = 175

Authentication checks to verify message sender identity.

Authorization = 300

Authorization checks including role and grant policies.

Cache = 400

Cache stage to check for cached values and responses.

Cascade = 750

Cascade stage: stages any follow-up messages a handler returns (via ICascade) to the outbox. Runs inside outbox staging so cascaded messages are persisted with the handler's outbound set.

Deduplication = 599

Deduplication and idempotency checks, executed immediately before handler processing.

End = 1000

The final stage of the middleware pipeline.

ErrorHandling = 800

Error handling and compensation stage.

Instrumentation = 150

Instrumentation stage for performance metrics and telemetry.

Logging = 190

Logging stage for audit trails and diagnostic logging.

Optimization = 450

Optimization stage for batching, bulk operations, and performance enhancements.

PostProcessing = 700

Post-processing stage for cleanup and result transformation.

PreProcessing = 100

Pre-processing stage for tracing and context setup.

Processing = 600

Core message processing stage where handlers execute.

RateLimiting = 50

Rate limiting checks to control message throughput.

Routing = 500

Routing stage for bus resolution, forwarders, and event publication.

Serialization = 250

Message serialization and deserialization processing.

Start = 0

The starting stage of the middleware pipeline.

Validation = 200

Validation stage for schema, data annotation, and fluent validation.