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.

InitialEndpointMetadata

The initial endpoint metadata to add as part of the creation of the RequestDelegate.

RouteHandlerFilterFactories

The list of filters that must run in the pipeline for a given route handler.

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