Прочетете на английски

Споделяне чрез


RequestDelegateFactory.InferMetadata Method

Definition

Returns metadata inferred automatically for the RequestDelegate created by Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult). This includes metadata inferred by IEndpointMetadataProvider and IEndpointParameterMetadataProvider implemented by parameter and return types to the methodInfo.

C#
public static Microsoft.AspNetCore.Http.RequestDelegateMetadataResult InferMetadata (System.Reflection.MethodInfo methodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default);

Parameters

Returns

The RequestDelegateMetadataResult to be passed to Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult).

Applies to

Продукт Версии
ASP.NET Core 7.0, 8.0, 9.0