Reacting to hosting rename
This commit is contained in:
parent
eed89cd37c
commit
5a284732af
|
|
@ -24,3 +24,4 @@ nuget.exe
|
||||||
*.ipch
|
*.ipch
|
||||||
*.sln.ide
|
*.sln.ide
|
||||||
project.lock.json
|
project.lock.json
|
||||||
|
/.vs/
|
||||||
|
|
|
||||||
|
|
@ -72,12 +72,12 @@ namespace AutobahnTestServer
|
||||||
|
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
var application = new WebApplicationBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseConfiguration(WebApplicationConfiguration.GetDefault(args))
|
.UseDefaultConfiguration(args)
|
||||||
.UseStartup<Startup>()
|
.UseStartup<Startup>()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
application.Run();
|
host.Run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,15 +45,15 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
|
||||||
var config = configBuilder.Build();
|
var config = configBuilder.Build();
|
||||||
config["server.urls"] = "http://localhost:54321";
|
config["server.urls"] = "http://localhost:54321";
|
||||||
|
|
||||||
var application = new WebApplicationBuilder()
|
var host = new WebHostBuilder()
|
||||||
.UseConfiguration(config)
|
.UseConfiguration(config)
|
||||||
.UseServer("Microsoft.AspNet.Server.Kestrel")
|
.UseServer("Microsoft.AspNet.Server.Kestrel")
|
||||||
.Configure(startup)
|
.Configure(startup)
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
application.Start();
|
host.Start();
|
||||||
|
|
||||||
return application;
|
return host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue