What is a Host and what’s the importance of Host in ASP.NET Core application?

Experience Level: Junior
Tags: .NET Core ASP.NET Core

Answer

.NET apps configure and launch a host. The host is responsible for app startup and lifetime management. Two host APIs are available for use.

  • WebHost
  • GenericHost
Related ASP.NET Core job interview questions