RequestDelegateFactoryOptions Class

Definition

Options for controlling the behavior of the RequestDelegate when created using RequestDelegateFactory.

public sealed class RequestDelegateFactoryOptions
type RequestDelegateFactoryOptions = class
Public NotInheritable Class RequestDelegateFactoryOptions
Inheritance
RequestDelegateFactoryOptions

Constructors

RequestDelegateFactoryOptions()

Properties

DisableInferBodyFromParameters

Prevent the RequestDelegateFactory from inferring a parameter should be bound from the request body without an attribute that implements IFromBodyMetadata.

EndpointBuilder

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.

RouteParameterNames

The list of route parameter names that are specified for this handler.

ServiceProvider

The IServiceProvider instance used to access application services.

ThrowOnBadRequest

Controls whether the RequestDelegate should throw a BadHttpRequestException in addition to writing a Debug log when handling invalid requests.

Applies to