Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Http.​Metadata.​IEndpointMetadataProvider

Assembly: Microsoft.AspNetCore.Http.Abstractions

Indicates that a type provides a static method that provides <see cref="T:Microsoft.AspNetCore.Http.Endpoint" /> metadata when declared as a parameter type or the returned type of an <see cref="T:Microsoft.AspNetCore.Http.Endpoint" /> route handler delegate.

Methods

static void
PopulateMetadata​(System.​Reflection.​MethodInfo method, Builder.​EndpointBuilder builder)
Populates metadata for the related <see cref="T:Microsoft.AspNetCore.Http.Endpoint" /> and <see cref="T:System.Reflection.MethodInfo" /> .
method The <see cref="T:System.Reflection.MethodInfo" /> of the route handler delegate or MVC Action of the endpoint being created.
builder The <see cref="T:Microsoft.AspNetCore.Builder.EndpointBuilder" /> used to construct the endpoint for the given <paramref name="method" /> .
Remarks This method is called by RequestDelegateFactory when creating a <see cref="T:Microsoft.AspNetCore.Http.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 <see cref="P:Microsoft.AspNetCore.Builder.EndpointBuilder.Metadata" /> property of the <paramref name="builder" /> to modify the <see cref="P:Microsoft.AspNetCore.Http.Endpoint.Metadata" /> being built.