30 Building ASP.NET Core apps with the generic host and Startup
This chapter covers
- Using the generic host and a Startup class to bootstrap your ASP.NET Core app
- Understanding how the generic host differs from WebApplication
- Building a custom generic IHostBuilder
- Choosing between the generic host and minimal hosting
Some of the biggest changes introduced in ASP.NET Core in .NET 6 were the minimal hosting APIs, namely the WebApplication and WebApplicationBuilder types you’ve seen throughout this book. These were introduced to dramatically reduce the amount of code needed to get started with ASP.NET Core and are now the default way to build ASP.NET Core apps.
Before .NET 6, ASP.NET Core used a different approach to bootstrap your app: the generic ...
Get ASP.NET Core in Action, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.