RequestDelegateFactory.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
Create(Delegate, RequestDelegateFactoryOptions) |
の実装を RequestDelegate 作成します |
Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) |
の実装を RequestDelegate 作成します |
Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions) |
の実装を RequestDelegate 作成します |
Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) |
の実装を RequestDelegate 作成します |
Create(Delegate, RequestDelegateFactoryOptions)
の実装を 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 動作を構成するために使用される 。
戻り値
適用対象
Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)
の実装を 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。 それ以外の場合、この手順は既に行われているので、このメタデータ推論はスキップされます。
戻り値
適用対象
Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions)
の実装を 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 動作を構成するために使用される 。
戻り値
適用対象
Create(MethodInfo, Func<HttpContext,Object>, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)
の実装を 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。 それ以外の場合、この手順は既に行われているので、このメタデータ推論はスキップされます。