MiddlewarePipelineDebugMiddleware Class

Represents one middleware registration and its child branches.

public sealed class MiddlewarePipelineDebugMiddleware

Constructors

NameDescription
MiddlewarePipelineDebugMiddleware()

MiddlewarePipelineDebugMiddleware()

  • 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 MiddlewarePipelineDebugMiddleware()

No documentation is available.

Properties

NameDescription
BranchesGets the branch pipelines associated with this middleware.
DelegateMethodGets the delegate method used to register the middleware, or null for a synthetic entry that does not correspond to a registered delegate.
DelegateTypeGets the type declaring the delegate used to register the middleware, or null for a synthetic entry that does not correspond to a registered delegate.
NameGets the middleware name.

Gets the branch pipelines associated with this middleware.

public required IReadOnlyList<MiddlewarePipelineDebugPipeline> Branches { get; init; }

Property value

IReadOnlyList<MiddlewarePipelineDebugPipeline>

Remarks

IApplicationBuilder.New gives no indication of which later registration owns the branch it creates, so branches are attributed to the next middleware registered. That is correct for Map, MapWhen and UseWhen, which register immediately after creating a branch. A branch created by hand and followed by an unrelated registration is attributed to that registration; one with no following registration is reported under a synthetic (unattached branch) entry.

Gets the delegate method used to register the middleware, or null for a synthetic entry that does not correspond to a registered delegate.

public string? DelegateMethod { get; init; }

Property value

string?

Gets the type declaring the delegate used to register the middleware, or null for a synthetic entry that does not correspond to a registered delegate.

public string? DelegateType { get; init; }

Property value

string?

Gets the middleware name.

public required string Name { get; init; }

Property value

string