RequestDelegateFactory 类

定义

RequestDelegateDelegate请求处理程序创建实现。

public static class RequestDelegateFactory
type RequestDelegateFactory = class
Public Class RequestDelegateFactory
继承
RequestDelegateFactory

方法

Create(Delegate, RequestDelegateFactoryOptions)

RequestDelegate 创建实现 handler

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

RequestDelegate 创建实现 handler

Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions)

RequestDelegate 创建实现 methodInfo

Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

RequestDelegate 创建实现 methodInfo

InferMetadata(MethodInfo, RequestDelegateFactoryOptions)

返回为 创建的 自动 RequestDelegate 推断的 Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)元数据。 这包括由 IEndpointMetadataProvider 参数推断和 IEndpointParameterMetadataProvider 实现的元数据,并将类型返回给 methodInfo

适用于