RequestDelegateFactory.Create 메서드

정의

오버로드

Create(Delegate, RequestDelegateFactoryOptions)

에 대한 구현을 RequestDelegatehandler만듭니다.

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

에 대한 구현을 RequestDelegatehandler만듭니다.

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

에 대한 구현을 RequestDelegatemethodInfo만듭니다.

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

에 대한 구현을 RequestDelegatemethodInfo만듭니다.

Create(Delegate, RequestDelegateFactoryOptions)

에 대한 구현을 RequestDelegatehandler만듭니다.

public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default);
public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options);
static member Create : Delegate * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions -> Microsoft.AspNetCore.Http.RequestDelegateResult
Public Shared Function Create (handler As Delegate, Optional options As RequestDelegateFactoryOptions = Nothing) As RequestDelegateResult
Public Shared Function Create (handler As Delegate, options As RequestDelegateFactoryOptions) As RequestDelegateResult

매개 변수

handler
Delegate

반환 값이 있는 응답을 생성하는 사용자 지정 매개 변수가 여러 개 있는 요청 처리기입니다.

options
RequestDelegateFactoryOptions

RequestDelegateFactoryOptions 처리기의 동작을 구성하는 데 사용되는 입니다.

반환

RequestDelegateResult

적용 대상

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

에 대한 구현을 RequestDelegatehandler만듭니다.

public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (Delegate handler, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult? metadataResult = default);
static member Create : Delegate * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions * Microsoft.AspNetCore.Http.RequestDelegateMetadataResult -> Microsoft.AspNetCore.Http.RequestDelegateResult
Public Shared Function Create (handler As Delegate, Optional options As RequestDelegateFactoryOptions = Nothing, Optional metadataResult As RequestDelegateMetadataResult = Nothing) As RequestDelegateResult

매개 변수

handler
Delegate

반환 값이 있는 응답을 생성하는 사용자 지정 매개 변수가 여러 개 있는 요청 처리기입니다.

options
RequestDelegateFactoryOptions

RequestDelegateFactoryOptions 처리기의 동작을 구성하는 데 사용되는 입니다.

metadataResult
RequestDelegateMetadataResult

최종 RequestDelegate를 만들기 전에 메타데이터를 유추하는 데 사용된 경우 에서 InferMetadata(MethodInfo, RequestDelegateFactoryOptions) 반환된 결과입니다. 이면 null메서드를 호출하면 Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) 동일한 Method 에 대해 유추된 메타데이터가 InferMetadata(MethodInfo, RequestDelegateFactoryOptions) 유추되고 해당 메타데이터로 채워집니다EndpointBuilder. 그렇지 않으면 이 단계가 이미 완료되었으므로 이 메타데이터 유추를 건너뛰게 됩니다.

반환

RequestDelegateResult

적용 대상

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

에 대한 구현을 RequestDelegatemethodInfo만듭니다.

public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (System.Reflection.MethodInfo methodInfo, Func<Microsoft.AspNetCore.Http.HttpContext,object>? targetFactory = default, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default);
public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (System.Reflection.MethodInfo methodInfo, Func<Microsoft.AspNetCore.Http.HttpContext,object>? targetFactory, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options);
static member Create : System.Reflection.MethodInfo * Func<Microsoft.AspNetCore.Http.HttpContext, obj> * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions -> Microsoft.AspNetCore.Http.RequestDelegateResult
Public Shared Function Create (methodInfo As MethodInfo, Optional targetFactory As Func(Of HttpContext, Object) = Nothing, Optional options As RequestDelegateFactoryOptions = Nothing) As RequestDelegateResult
Public Shared Function Create (methodInfo As MethodInfo, targetFactory As Func(Of HttpContext, Object), options As RequestDelegateFactoryOptions) As RequestDelegateResult

매개 변수

methodInfo
MethodInfo

반환 값이 있는 응답을 생성하는 사용자 지정 매개 변수가 여러 개 있는 요청 처리기입니다.

targetFactory
Func<HttpContext,Object>

this 비정적 메서드에 대한 를 만듭니다.

options
RequestDelegateFactoryOptions

RequestDelegateFactoryOptions 처리기의 동작을 구성하는 데 사용되는 입니다.

반환

RequestDelegate

적용 대상

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

에 대한 구현을 RequestDelegatemethodInfo만듭니다.

public static Microsoft.AspNetCore.Http.RequestDelegateResult Create (System.Reflection.MethodInfo methodInfo, Func<Microsoft.AspNetCore.Http.HttpContext,object>? targetFactory = default, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default, Microsoft.AspNetCore.Http.RequestDelegateMetadataResult? metadataResult = default);
static member Create : System.Reflection.MethodInfo * Func<Microsoft.AspNetCore.Http.HttpContext, obj> * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions * Microsoft.AspNetCore.Http.RequestDelegateMetadataResult -> Microsoft.AspNetCore.Http.RequestDelegateResult
Public Shared Function Create (methodInfo As MethodInfo, Optional targetFactory As Func(Of HttpContext, Object) = Nothing, Optional options As RequestDelegateFactoryOptions = Nothing, Optional metadataResult As RequestDelegateMetadataResult = Nothing) As RequestDelegateResult

매개 변수

methodInfo
MethodInfo

반환 값이 있는 응답을 생성하는 사용자 지정 매개 변수가 여러 개 있는 요청 처리기입니다.

targetFactory
Func<HttpContext,Object>

this 비정적 메서드에 대한 를 만듭니다.

options
RequestDelegateFactoryOptions

RequestDelegateFactoryOptions 처리기의 동작을 구성하는 데 사용되는 입니다.

metadataResult
RequestDelegateMetadataResult

최종 RequestDelegate를 만들기 전에 메타데이터를 유추하는 데 사용된 경우 에서 InferMetadata(MethodInfo, RequestDelegateFactoryOptions) 반환된 결과입니다. 이면 null메서드를 호출하면 Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) 동일한 Method 에 대해 유추된 메타데이터가 InferMetadata(MethodInfo, RequestDelegateFactoryOptions) 유추되고 해당 메타데이터로 채워집니다EndpointBuilder. 그렇지 않으면 이 단계가 이미 완료되었으므로 이 메타데이터 유추를 건너뛰게 됩니다.

반환

RequestDelegate

적용 대상