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
-
What is the role of IHostingEnvironment interface in ASP.NET Core?
.NET Core ASP.NET Core Junior -
What does WebHost.CreateDefaultBuilder() do?
.NET Core ASP.NET Core Junior -
What are different ASP.NET Core diagnostic middleware and how to do error handling?
.NET Core ASP.NET Core Junior -
What is ASP.NET Core Module (ANCM)?
.NET Core ASP.NET Core Junior -
What is WebListener?
.NET Core ASP.NET Core Junior