1.

What is the purpose of the Program class?

Answer»

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.



Discussion

No Comment Found