Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 16:23:13 -07:00
parent 62a22caa00
commit dfb1f9c712
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ $@"<!doctype html>
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIISPlatformHandlerUrl()
.UseStartup<Startup>()
.Build();

View File

@ -10,7 +10,7 @@ namespace LocalizationWebsite
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseDefaultHostingConfiguration(args)
.UseStartup("LocalizationWebsite")
.Build();