Table of Contents

Class PerformancePipelineExtensions

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

Extension methods for adding performance middleware to the dispatch pipeline.

public static class PerformancePipelineExtensions
Inheritance
PerformancePipelineExtensions
Inherited Members

Methods

UsePerformance(IDispatchBuilder)

Adds performance monitoring middleware to the dispatch pipeline.

public static IDispatchBuilder UsePerformance(this IDispatchBuilder builder)

Parameters

builder IDispatchBuilder

The dispatch builder.

Returns

IDispatchBuilder

The builder for fluent configuration.

Remarks

The performance middleware tracks execution timing, throughput, and latency metrics for dispatched messages, enabling performance monitoring and alerting.

Performance services must be registered separately in the DI container. This method only adds the middleware to the pipeline.

Recommended pipeline order:

builder.UsePerformance()         // Measure early for accurate timing
       .UseAuthentication()
       .UseAuthorization()
       .UseValidation()
       .UseRetry();