Reacting to Hosting changes
This commit is contained in:
parent
4052c26a73
commit
7314e6568a
|
|
@ -92,7 +92,7 @@ namespace HotAddSample
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var host = new WebHostBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseDefaultConfiguration(args)
|
.UseDefaultHostingConfiguration(args)
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.UseServer("Microsoft.AspNetCore.Server.WebListener")
|
.UseServer("Microsoft.AspNetCore.Server.WebListener")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace SelfHostServer
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var host = new WebHostBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseDefaultConfiguration(args)
|
.UseDefaultHostingConfiguration(args)
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.UseServer("Microsoft.AspNetCore.Server.WebListener")
|
.UseServer("Microsoft.AspNetCore.Server.WebListener")
|
||||||
.Build();
|
.Build();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue