We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b54778 commit c8b9a29Copy full SHA for c8b9a29
Program.cs
@@ -1,3 +1,4 @@
1
+using Microsoft.AspNetCore;
2
using Microsoft.AspNetCore.Hosting;
3
using Microsoft.Extensions.Hosting;
4
@@ -10,15 +11,8 @@ public static void Main(string[] args)
10
11
CreateWebHostBuilder(args).Build().Run();
12
}
13
- public static IHostBuilder CreateWebHostBuilder(string[] args) =>
14
- Host.CreateDefaultBuilder(args)
15
- .ConfigureWebHostDefaults(webBuilder =>
16
- {
17
- webBuilder.ConfigureKestrel(serverOptions =>
18
19
- // Set properties and call methods on options
20
- })
21
- .UseStartup<Startup>();
22
- });
+ public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
+ WebHost.CreateDefaultBuilder(args)
+ .UseStartup<Startup>();
23
24
0 commit comments