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