liveBook · Manning

UseEndpoints

UseEndpoints is an ASP.NET Core extension method that adds endpoint execution middleware and registers endpoints in a request pipeline.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

UseEndpoints is an ASP.NET Core extension method that adds endpoint execution middleware and registers endpoints in a request pipeline.

How it is used
Registers and executes endpoints in an ASP.NET Core Startup request pipeline.
How deep it goes
Explains middleware placement and Map* registration, but does not descend into endpoint execution internals.
Examples
Demonstrates a Startup.Configure pipeline that maps Razor Pages with endpoints.MapRazorPages().
What you can do after
Operate/configure an ASP.NET Core Startup pipeline and register Razor Pages or other endpoints through Map* methods.

Read how ASP.NET Core in Action, 3e explains UseEndpoints →

Pro ASP.NET Core 7, Tenth Edition

UseEndpoints is an ASP.NET Core application-builder extension method that adds endpoint execution middleware and registers endpoint routes.

How it is used
Registers URL routes and executes selected endpoints within the ASP.NET Core request pipeline.
How deep it goes
Works through explicit pipeline configuration and contrasts it with direct registration, including middleware-order consequences.
Examples
Tests a routing GET endpoint at http://localhost:5000/routing and maps component methods to capital/uk and population/paris.
What you can do after
Apply it via ASP.NET Core to register endpoints explicitly or directly on WebApplication and inspect route selection from middleware.

Read how Pro ASP.NET Core 7, Tenth Edition explains UseEndpoints →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.