RequestDelegateFactory.InferMetadata Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- methodInfo
 - MethodInfo
 
The MethodInfo for the route handler to be passed to Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult).
- options
 - RequestDelegateFactoryOptions
 
The options that will be used when calling Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult).
Returns
The RequestDelegateMetadataResult to be passed to Create(Delegate, RequestDelegateFactoryOptions, RequestDelegateMetadataResult).