concept static void Main in category asp.net
appears as: static void Main

This is an excerpt from Manning's book ASP.NET Core in Action, Second Edition.
All ASP.NET Core applications start in the same way as .NET Console applications—with a Program.cs file. This file contains a
static void Mainfunction, which is a standard characteristic of console apps. This method must exist and is called whenever you start your web application. In ASP.NET Core applications, it’s used to build and run anIWebHostinstance, as shown in the following listing, which shows the default Program.cs file. TheIWebHostis the core of your ASP.NET Core application, containing the application configuration and the Kestrel server that listens for requests and sends responses.