Reacting to Kestrel extensions

This commit is contained in:
John Luo 2016-03-30 16:22:43 -07:00
parent c2534339f2
commit 2614ffb01d
2 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,7 @@ namespace HttpOverridesSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
// .UseIIS() // This repo can no longer reference IIS because IISIntegration depends on it. // .UseIIS() // This repo can no longer reference IIS because IISIntegration depends on it.
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();
@ -43,3 +43,4 @@ namespace HttpOverridesSample
} }
} }
} }

View File

@ -39,7 +39,7 @@ namespace ResponseBufferingSample
{ {
var host = new WebHostBuilder() var host = new WebHostBuilder()
.UseDefaultHostingConfiguration(args) .UseDefaultHostingConfiguration(args)
.UseServer("Microsoft.AspNetCore.Server.Kestrel") .UseKestrel()
// .UseIIS() // This repo can no longer reference IIS because IISIntegration depends on it. // .UseIIS() // This repo can no longer reference IIS because IISIntegration depends on it.
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();
@ -48,3 +48,4 @@ namespace ResponseBufferingSample
} }
} }
} }