December 2019
Intermediate to advanced
598 pages
12h 21m
English
An ASP.NET Core app is a console app that creates a web server. The entry point for the app is a method called Main in a class called Program, which can be found in the Program.cs file in the root of the project:
public class Program{ public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>();}
This method creates a web host using WebHost.CreateDefaultBuilder, which configures items such as the following:
Read now
Unlock full access