Skip to content

Commit c8b9a29

Browse files
committed
IHostBuilder updated to IWebHostBuilder based on Microsoft SPA React template
1 parent 4b54778 commit c8b9a29

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

Program.cs

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Microsoft.AspNetCore;
12
using Microsoft.AspNetCore.Hosting;
23
using Microsoft.Extensions.Hosting;
34

@@ -10,15 +11,8 @@ public static void Main(string[] args)
1011
CreateWebHostBuilder(args).Build().Run();
1112
}
1213

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-
});
14+
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
15+
WebHost.CreateDefaultBuilder(args)
16+
.UseStartup<Startup>();
2317
}
2418
}

0 commit comments

Comments
 (0)