WebApplication

The ASP.NET Core host object that owns configuration, services and the middleware pipeline, created by WebApplication.CreateBuilder(args) and started with app.Run().

In more detail

The builder loads configuration and collects service registrations; builder.Build() creates the app, on which you add middleware and map endpoints. The host validates options and starts the server before accepting requests.

Example

var builder = WebApplication.CreateBuilder(args);

Related terms

Taught in

References