- 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();
}
推薦閱讀
- Python從小白到大牛
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- AWS Serverless架構:使用AWS從傳統部署方式向Serverless架構遷移
- NLTK基礎教程:用NLTK和Python庫構建機器學習應用
- Integrating Facebook iOS SDK with Your Application
- Java實戰(第2版)
- Django 3.0入門與實踐
- Go語言開發實戰(慕課版)
- Java編程從入門到精通
- 貫通Tomcat開發
- Java 9 with JShell
- Oracle Database 12c DBA官方手冊(第8版)
- Learning Swift
- PhoneGap 3.x Mobile Application Development Hotshot
- 3D Printing Designs:Fun and Functional Projects