Web Host and Generic Host in ASP.NET Core
.NET apps configure and launch a host. The host is responsible for app startup and lifetime management. Two host APIs are available for use:
- Web Host – Suitable for hosting web apps.
- Generic Host (ASP.NET Core 2.1 or later) – Suitable for hosting non-web apps (for example, apps that run background tasks). In a future release, the Generic Host will be suitable for hosting any kind of app, including web apps. The Generic Host will eventually replace the Web Host.
Background tasks with hosted services in ASP.NET Core
Learn how to implement background tasks with hosted services in ASP.NET Core.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.