Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 16:27:01 -07:00
parent 14473b5458
commit c0d265ce7b
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ namespace SessionSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
.UseIISPlatformHandlerUrl() .UseIISPlatformHandlerUrl()
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();
@ -89,4 +89,4 @@ namespace SessionSample
host.Run(); host.Run();
} }
} }
} }