MiddlewarePipelineDebugSnapshot Class

Represents a snapshot of the ASP.NET Core middleware pipeline and endpoint list.

public sealed class MiddlewarePipelineDebugSnapshot

Constructors

NameDescription
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

NameDescription
EndpointsGets the list of endpoints registered in the application.
IsPipelineCapturedGets a value indicating whether the pipeline has been captured yet.
PipelineGets the middleware pipeline tree.

Gets the list of endpoints registered in the application.

public required IReadOnlyList<MiddlewarePipelineDebugEndpoint> Endpoints { get; init; }

Gets a value indicating whether the pipeline has been captured yet.

public required bool IsPipelineCaptured { get; init; }

Property value

bool

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; }

Methods

NameDescription
ToString()Renders the middleware pipeline tree and endpoint list as text.

Renders the middleware pipeline tree and endpoint list as text.

public override string ToString()

Returns

string A text representation of the snapshot.