Share via


RequestDelegateFactory.Create Yöntem

Tanım

Aşırı Yüklemeler

Create(Delegate, RequestDelegateFactoryOptions)

için handlerbir RequestDelegate uygulama oluşturur.

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

için handlerbir RequestDelegate uygulama oluşturur.

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

için methodInfobir RequestDelegate uygulama oluşturur.

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

için methodInfobir RequestDelegate uygulama oluşturur.

Create(Delegate, RequestDelegateFactoryOptions)

için handlerbir RequestDelegate uygulama oluşturur.

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

Parametreler

handler
Delegate

Genellikle dönüş değeriyle bir yanıt üreten herhangi bir sayıda özel parametreye sahip bir istek işleyicisi.

options
RequestDelegateFactoryOptions

İşleyicinin RequestDelegateFactoryOptions davranışını yapılandırmak için kullanılır.

Döndürülenler

RequestDelegateResult.

Şunlara uygulanır

Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult)

için handlerbir RequestDelegate uygulama oluşturur.

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

Parametreler

handler
Delegate

Genellikle dönüş değeriyle bir yanıt üreten herhangi bir sayıda özel parametreye sahip bir istek işleyicisi.

options
RequestDelegateFactoryOptions

İşleyicinin RequestDelegateFactoryOptions davranışını yapılandırmak için kullanılır.

metadataResult
RequestDelegateMetadataResult

Son RequestDelegate oluşturulmadan önce meta verileri çıkarsamak için kullanıldıysa, sonucu döndürüldü InferMetadata(MethodInfo, RequestDelegateFactoryOptions) . isenull, yöntemine Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) yapılan bu çağrı aynı Method için çıkarılacak meta verileri InferMetadata(MethodInfo, RequestDelegateFactoryOptions) çıkarır ve bu meta verilerle doldurulurEndpointBuilder. Aksi takdirde, bu adım zaten yapıldığından bu meta veri çıkarımı atlanır.

Döndürülenler

RequestDelegateResult.

Şunlara uygulanır

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

için methodInfobir RequestDelegate uygulama oluşturur.

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

Parametreler

methodInfo
MethodInfo

Genellikle dönüş değeriyle bir yanıt üreten herhangi bir sayıda özel parametreye sahip bir istek işleyicisi.

targetFactory
Func<HttpContext,Object>

Statik olmayan yöntem için öğesini this oluşturur.

options
RequestDelegateFactoryOptions

İşleyicinin RequestDelegateFactoryOptions davranışını yapılandırmak için kullanılır.

Döndürülenler

RequestDelegate.

Şunlara uygulanır

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

için methodInfobir RequestDelegate uygulama oluşturur.

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

Parametreler

methodInfo
MethodInfo

Genellikle dönüş değeriyle bir yanıt üreten herhangi bir sayıda özel parametreye sahip bir istek işleyicisi.

targetFactory
Func<HttpContext,Object>

Statik olmayan yöntem için öğesini this oluşturur.

options
RequestDelegateFactoryOptions

İşleyicinin RequestDelegateFactoryOptions davranışını yapılandırmak için kullanılır.

metadataResult
RequestDelegateMetadataResult

Son RequestDelegate oluşturulmadan önce meta verileri çıkarsamak için kullanıldıysa, sonucu döndürüldü InferMetadata(MethodInfo, RequestDelegateFactoryOptions) . isenull, yöntemine Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult) yapılan bu çağrı aynı Method için çıkarılacak meta verileri InferMetadata(MethodInfo, RequestDelegateFactoryOptions) çıkarır ve bu meta verilerle doldurulurEndpointBuilder. Aksi takdirde, bu adım zaten yapıldığından bu meta veri çıkarımı atlanır.

Döndürülenler

RequestDelegate.

Şunlara uygulanır