- Notifications
You must be signed in to change notification settings - Fork 843
/
Copy pathProgram.cs
41 lines (38 loc) · 1.37 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
usingMicrosoft.AspNetCore.Hosting;
usingMicrosoft.Extensions.Hosting;
usingMicrosoft.Extensions.Logging;
namespaceMicrosoft.BotBuilderSamples
{
/// <summary>
/// The main entry point for the application.
/// </summary>
publicclassProgram
{
/// <summary>
/// The main method, which is the entry point of the application.
/// </summary>
/// <param name="args">The command-line arguments.</param>
publicstaticvoidMain(string[]args)
{
CreateHostBuilder(args).Build().Run();
}
/// <summary>
/// Creates the host builder for the application.
/// </summary>
/// <param name="args">The command-line arguments.</param>
/// <returns>An <see cref="IHostBuilder"/> configured for the application.</returns>
publicstaticIHostBuilderCreateHostBuilder(string[]args)=>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.ConfigureLogging(logging =>
{
logging.AddDebug();
logging.AddConsole();
});
webBuilder.UseStartup<Startup>();
});
}
}