Dela via


RequestDelegateFactoryOptions.EndpointBuilder Property

Definition

The mutable EndpointBuilder used to assist in the creation of the RequestDelegate. This is primarily used to run FilterFactories and populate inferred Metadata. The RequestDelegate must be null. After the call to Create(Delegate, RequestDelegateFactoryOptions), RequestDelegate will be the same as RequestDelegate.

public Microsoft.AspNetCore.Builder.EndpointBuilder? EndpointBuilder { get; init; }
member this.EndpointBuilder : Microsoft.AspNetCore.Builder.EndpointBuilder with get, set
Public Property EndpointBuilder As EndpointBuilder

Property Value

Remarks

Any metadata already in Metadata will be included in EndpointMetadatabefore most metadata inferred during creation of the RequestDelegate and before any metadata provided by types in the delegate signature that implement IEndpointMetadataProvider or IEndpointParameterMetadataProvider. The exception to this general rule is the IAcceptsMetadata that Create(Delegate, RequestDelegateFactoryOptions) infers automatically without any custom metadata providers which instead is inserted at the start to give it lower precedence. Custom metadata providers can choose to insert their metadata at the start to give lower precedence, but this is unusual.

Applies to