April 2018
Intermediate to advanced
300 pages
7h 41m
English
As we already know, in .NET Framework, the Main method is the main entry point from where the application/program is executed by the OS. For example, in ASP.NET Core, Program.cs is the main class where the Main method is defined, which creates a WebHost object, runs the Kestrel server, and loads up the HTTP pipeline as configured in the Startup class.
In the previous version of C#, the Main method had the following signatures:
public static void Main();public static void Main(string[] args);public static int Main();public static int Main(string[] args);
In C# 7.0, we can use Async Main to perform asynchronous operations. The Async/Await feature was initially released in .NET Framework 4.5 in order to execute methods asynchronously. ...