WebApplication
A framework type that represents a web application and provides application-level configuration or lifecycle capabilities.
ASP.NET Core in Action, 3e
WebApplication is the ASP.NET Core type that represents a configured web application and exposes its request-processing pipeline and endpoint-registration capabilities.
- How it is used
- Provides the application object used to configure request handling and start an ASP.NET Core server.
- How deep it goes
- Explains builder setup, middleware ordering, endpoint mapping, and environment-specific behavior through working applications; defers detailed configuration topics.
- Examples
- Uses a Hello World endpoint, a JSON-producing person endpoint with development-only logging, and a Razor Pages application.
- What you can do after
- Apply it via ASP.NET Core to build a request pipeline, map endpoints, and start a web application.
Read how ASP.NET Core in Action, 3e explains WebApplication →
Pro ASP.NET Core 7, Tenth Edition
WebApplication is the ASP.NET Core application type that configures request processing and runs the web server.
- How it is used
- Configures ASP.NET Core services, middleware, endpoints, and server execution from Program.cs.
- How deep it goes
- Explains the builder-to-run lifecycle, endpoint mapping, middleware, configuration, and environment access without descending into server internals.
- Examples
- Uses a Hello World endpoint, environment-specific service registration, middleware, configuration access, and an observable HTTP response.
- What you can do after
- Build and operate a minimal ASP.NET Core request pipeline with mapped endpoints, middleware, configuration, and environment-specific services.
Read how Pro ASP.NET Core 7, Tenth Edition explains WebApplication →
Also covered in
What to know first
- extensionAn extension is a language feature that lets functionality be defined outside a type's original declaration and called using that type's member-like syntax, without modifying the type.
- serverA server is a computer system or software process that provides data, resources, or services to other systems, typically by responding to requests.
Related concepts
- WebApplicationBuilderproduced by · WebApplicationBuilder is an ASP.NET Core builder type that configures application services, hosting, logging, and related settings before constructing a WebApplication.
- IEndpointRouteBuilderimplements · IEndpointRouteBuilder is an ASP.NET Core interface for registering route endpoints during application request-processing configuration.
- configurationuses · Configuration is a set of settings or structural choices that specifies how a system, application, or component is organized or operates.
- DeveloperExceptionPageMiddlewareconfigures · DeveloperExceptionPageMiddleware is ASP.NET Core middleware that catches unhandled pipeline exceptions and generates a detailed diagnostic error page for developers.
- IHostuses · IHost is the .NET abstraction representing a running application host and its managed services.
Questions about WebApplication
What is WebApplication?
A framework type that represents a web application and provides application-level configuration or lifecycle capabilities.
Which Manning books explain WebApplication?
ASP.NET Core in Action, 3e and Pro ASP.NET Core 7, Tenth Edition.
What should I know before learning WebApplication?
Manning books that teach WebApplication usually introduce extension and server first.
What is WebApplication a kind of?
WebApplication is a kind of IApplicationBuilder. IApplicationBuilder is the ASP.NET Core interface for configuring an application's middleware request-processing pipeline and accessing its services.
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.

