- C# and .NET Core Test Driven Development
- Ayobami Adewole
- 89字
- 2021-06-25 22:00:33
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();
}
推薦閱讀
- DevOps:軟件架構師行動指南
- 零基礎搭建量化投資系統:以Python為工具
- 機器學習系統:設計和實現
- AIRAndroid應用開發實戰
- Neo4j Essentials
- 青少年Python編程入門
- Visual C#通用范例開發金典
- 編程菜鳥學Python數據分析
- Advanced Express Web Application Development
- Couchbase Essentials
- Mockito Essentials
- Hack與HHVM權威指南
- 3D Printing Designs:The Sun Puzzle
- Kotlin語言實例精解
- Python Penetration Testing Essentials