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

View File

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