Table of Contents

Class DiagnosticPipelineExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.Dispatch.dll

Extension methods for adding diagnostic middleware to the dispatch pipeline.

public static class DiagnosticPipelineExtensions
Inheritance
DiagnosticPipelineExtensions
Inherited Members

Methods

UseDiagnostics(IDispatchBuilder)

Adds diagnostic middleware to the dispatch pipeline that logs pipeline state, middleware registrations, and message dispatch information at Debug level.

public static IDispatchBuilder UseDiagnostics(this IDispatchBuilder builder)

Parameters

builder IDispatchBuilder

The dispatch builder.

Returns

IDispatchBuilder

The builder for fluent configuration.

Remarks

The diagnostic middleware runs at Start and logs pipeline composition on first invocation, plus message type and ID for every dispatch. All output is at Debug level.

Recommended for development environments only. Pipeline state is logged once on first dispatch to avoid noise.