Program.cs class is the entry point of our application. An ASP.NET application starts in the same way as a console application, from a static void Main() function.
This class configures the web host that will serve the requests. The host is responsible for application startup and lifetime management, including graceful shutdown.
At a minimum, the host configures a server and a request processing pipeline. The host can also set up logging, configuration, and dependency injection.