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.​Builder.​IEndpointConventionBuilder

Assembly: Microsoft.AspNetCore.Http.Abstractions

Builds conventions that will be used for customization of <see cref="T:Microsoft.AspNetCore.Builder.EndpointBuilder" /> instances.

Remarks

This interface is used at application startup to customize endpoints for the application.

Methods

void
Add​(System.​Action<​EndpointBuilder> convention)
Adds the specified convention to the builder. Conventions are used to customize <see cref="T:Microsoft.AspNetCore.Builder.EndpointBuilder" /> instances.
convention The convention to add to the builder.
void
Finally​(System.​Action<​EndpointBuilder> finallyConvention)
Registers the specified convention for execution after conventions registered via <see cref="M:Microsoft.AspNetCore.Builder.IEndpointConventionBuilder.Add(System.Action{Microsoft.AspNetCore.Builder.EndpointBuilder})" />
finallyConvention The convention to add to the builder.