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.​IEndpointParameterMetadataProvider

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 the parameter type of an <see cref="T:Microsoft.AspNetCore.Http.Endpoint" /> route handler delegate.

Methods

static void
PopulateMetadata​(System.​Reflection.​ParameterInfo parameter, Builder.​EndpointBuilder builder)
Populates metadata for the related <see cref="T:Microsoft.AspNetCore.Http.Endpoint" /> and <see cref="T:System.Reflection.ParameterInfo" /> .
parameter The <see cref="T:System.Reflection.ParameterInfo" /> 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="parameter" /> .
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 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.