UseEndpoints
UseEndpoints is an ASP.NET Core extension method that adds endpoint execution middleware and registers endpoints in a request pipeline.
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.
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
- request pipelineconfigures · A request pipeline is an ordered sequence of processing components through which HTTP requests and their responses pass in a web application.
- routingconfigures · Routing is the selection of a path, destination, or processing component to direct an item, request, or flow toward an intended endpoint.
- middlewarepart of · Middleware is an intermediate software component or layer that processes or mediates requests, messages, or operations between other components, often adding behavior or controlling their flow.
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.

