MiddlewarePipelineDebuggingServiceCollectionExtensions Class
Extension methods to register middleware pipeline debugging services.
public static class MiddlewarePipelineDebuggingServiceCollectionExtensionsMethods
| Name | Description |
|---|---|
| AddMiddlewarePipelineDebugging(IServiceCollection) | Adds services required to capture and expose the middleware pipeline tree. |
AddMiddlewarePipelineDebugging(IServiceCollection)
MiddlewarePipelineDebuggingServiceCollectionExtensions.csAdds services required to capture and expose the middleware pipeline tree.
public static IServiceCollection AddMiddlewarePipelineDebugging(this IServiceCollection services)Parameters
servicesIServiceCollection
Returns
Remarks
Capture happens through an IStartupFilter, which observes the host pipeline. Middleware registered directly on a WebApplication is not captured individually: WebApplication hands the host a single component standing for its whole pipeline, which appears as one entry named after that component. Middleware registered from an IStartupFilter or a classic Configure method is captured individually, including its branches.
Middleware names are resolved on a best-effort basis by inspecting the registration delegate. A name that cannot be resolved degrades to the declaring type and method of the delegate; it is never guessed from unrelated state.