React to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 15:45:27 -07:00
parent cad873d949
commit 7a3da26d87
2 changed files with 4 additions and 2 deletions

View File

@ -76,7 +76,7 @@ namespace IISSample
{
var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.UseIIS()
.UseStartup<Startup>()
.Build();
@ -85,3 +85,4 @@ namespace IISSample
}
}
}

View File

@ -13,10 +13,11 @@ namespace TestSites
.UseDefaultHostingConfiguration(args)
.UseIIS()
.UseStartup("TestSites")
.UseServer("Microsoft.AspNetCore.Server.Kestrel")
.UseKestrel()
.Build();
host.Run();
}
}
}