MiddlewarePipelineDebugSnapshot Class
Represents a snapshot of the ASP.NET Core middleware pipeline and endpoint list.
public sealed class MiddlewarePipelineDebugSnapshotConstructors
| Name | Description |
|---|---|
| MiddlewarePipelineDebugSnapshot() |
MiddlewarePipelineDebugSnapshot()
- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public MiddlewarePipelineDebugSnapshot()No documentation is available.
Properties
| Name | Description |
|---|---|
| Endpoints | Gets the list of endpoints registered in the application. |
| IsPipelineCaptured | Gets a value indicating whether the pipeline has been captured yet. |
| Pipeline | Gets the middleware pipeline tree. |
Endpoints
MiddlewarePipelineDebugSnapshot.csGets the list of endpoints registered in the application.
public required IReadOnlyList<MiddlewarePipelineDebugEndpoint> Endpoints { get; init; }Property value
IsPipelineCaptured
MiddlewarePipelineDebugSnapshot.csGets a value indicating whether the pipeline has been captured yet.
public required bool IsPipelineCaptured { get; init; }Property value
Remarks
The pipeline is captured while the host builds it. A snapshot taken before that — from an IHostedService that starts before the web host, or before StartAsync — reports false and an empty MiddlewarePipelineDebugSnapshot.Pipeline. This distinguishes "not captured yet" from "captured, and empty".
Gets the middleware pipeline tree.
public required MiddlewarePipelineDebugPipeline Pipeline { get; init; }Property value
Methods
| Name | Description |
|---|---|
| ToString() | Renders the middleware pipeline tree and endpoint list as text. |