- Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathProgram.cs
26 lines (23 loc) · 1.04 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Generated with Bot Builder V4 SDK Template for Visual Studio EchoBot v4.6.2
usingMicrosoft.AspNetCore;
usingMicrosoft.AspNetCore.Hosting;
namespaceMicrosoft.Teams.Samples.HelloWorld.Web
{
// The entry point for the HelloWorld Bot application.
// It configures and runs the web host using the Startup class.
publicclassProgram
{
publicstaticvoidMain(string[]args)
{
// Calls the CreateWebHostBuilder method to set up and run the application.
CreateWebHostBuilder(args).Build().Run();
}
// Creates and configures the web host with the Startup class for setting up services and middleware.
publicstaticIWebHostBuilderCreateWebHostBuilder(string[]args)=>
WebHost.CreateDefaultBuilder(args)// Sets up default configuration, logging, etc.
.UseStartup<Startup>();// Uses the Startup class to configure services and the request pipeline
}
}