次の方法で共有


RequestDelegateFactory.Create メソッド

定義

オーバーロード

Create(Delegate, RequestDelegateFactoryOptions)

ソース:
RequestDelegateFactory.cs

の実装を RequestDelegate 作成します handler

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

パラメーター

handler
Delegate

多くの場合、戻り値を含む応答を生成する任意の数のカスタム パラメーターを持つ要求ハンドラー。

options
RequestDelegateFactoryOptions

ハンドラーの RequestDelegateFactoryOptions 動作を構成するために使用される 。

戻り値

RequestDelegateResult

適用対象

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

ソース:
RequestDelegateFactory.cs

の実装を RequestDelegate 作成します handler

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)

ソース:
RequestDelegateFactory.cs

の実装を RequestDelegate 作成します methodInfo

public static Microsoft.AspNetCore.Http.RequestDelegateResult Create(System.Reflection.MethodInfo methodInfo, Func<Microsoft.AspNetCore.Http.HttpContext,object>? targetFactory, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options);
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);
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, targetFactory As Func(Of HttpContext, Object), options As RequestDelegateFactoryOptions) As RequestDelegateResult
Public Shared Function Create (methodInfo As MethodInfo, Optional targetFactory As Func(Of HttpContext, Object) = Nothing, Optional options As RequestDelegateFactoryOptions = Nothing) As RequestDelegateResult

パラメーター

methodInfo
MethodInfo

多くの場合、戻り値を含む応答を生成する任意の数のカスタム パラメーターを持つ要求ハンドラー。

targetFactory
Func<HttpContext,Object>

this非静的メソッドの を作成します。

options
RequestDelegateFactoryOptions

ハンドラーの RequestDelegateFactoryOptions 動作を構成するために使用される 。

戻り値

RequestDelegate

適用対象

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

ソース:
RequestDelegateFactory.cs

の実装を RequestDelegate 作成します methodInfo

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

適用対象