Dela via


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.

public static Microsoft.AspNetCore.Http.RequestDelegateMetadataResult InferMetadata (System.Reflection.MethodInfo methodInfo, Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions? options = default);
static member InferMetadata : System.Reflection.MethodInfo * Microsoft.AspNetCore.Http.RequestDelegateFactoryOptions -> Microsoft.AspNetCore.Http.RequestDelegateMetadataResult
Public Shared Function InferMetadata (methodInfo As MethodInfo, Optional options As RequestDelegateFactoryOptions = Nothing) As RequestDelegateMetadataResult

Parameters

Returns

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

Applies to