官术网_书友最值得收藏!

Program.cs

Like C# console applications, ASP.NET Core has the Program class, which is an important class that contains the entry point to the application. The file has the Main() method used to run the application and it is used to create an instance of WebHostBuilder for creating a host for the application. The Startup class to be used by the application is specified in the Main method:

 public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}

public static IWebHost BuildWebHost(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
}
主站蜘蛛池模板: 洱源县| 富锦市| 五指山市| 大足县| 镇康县| 株洲县| 铁力市| 景谷| 无棣县| 日喀则市| 商城县| 德格县| 铁岭市| 静宁县| 西藏| 林西县| 聊城市| 喀喇沁旗| 株洲市| 姜堰市| 遵义市| 钦州市| 大兴区| 噶尔县| 道真| 青浦区| 共和县| 瑞昌市| 瑞金市| 紫阳县| 都兰县| 报价| 社会| 罗城| 凌源市| 高安市| 旌德县| 长春市| 措美县| 子长县| 鄯善县|