Reacting to Hosting changes

This commit is contained in:
John Luo 2016-03-22 11:42:20 -07:00
parent 4052c26a73
commit 7314e6568a
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ namespace HotAddSample
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseDefaultConfiguration(args)
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.WebListener")
.Build();

View File

@ -41,7 +41,7 @@ namespace SelfHostServer
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseDefaultConfiguration(args)
.UseDefaultHostingConfiguration(args)
.UseStartup<Startup>()
.UseServer("Microsoft.AspNetCore.Server.WebListener")
.Build();