Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 15:54:02 -07:00
parent ea4b94a757
commit d0ed4f8688
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace AntiforgerySample
{ {
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();
@ -79,3 +79,4 @@ namespace AntiforgerySample
} }
} }
} }