IEndpointMetadataProvider.PopulateMetadata Method

Definition

Populates metadata for the related Endpoint and MethodInfo.

public static abstract void PopulateMetadata (System.Reflection.MethodInfo method, Microsoft.AspNetCore.Builder.EndpointBuilder builder);
static member PopulateMetadata : System.Reflection.MethodInfo * Microsoft.AspNetCore.Builder.EndpointBuilder -> unit
Public Shared Sub PopulateMetadata (method As MethodInfo, builder As EndpointBuilder)

Parameters

method
MethodInfo

The MethodInfo of the route handler delegate or MVC Action of the endpoint being created.

builder
EndpointBuilder

The EndpointBuilder used to construct the endpoint for the given method.

Remarks

This method is called by RequestDelegateFactory when creating a RequestDelegate and by MVC when creating endpoints for controller actions. This is called for each parameter and return type of the route handler or action with a declared type implementing this interface. Add or remove objects on the Metadata property of the builder to modify the Metadata being built.

Applies to