RequestDelegateFactoryOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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. |