Reacting to hosting api changes
This commit is contained in:
parent
42aedab4ec
commit
e1301925c0
|
|
@ -48,12 +48,13 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
|
||||||
config.Set("server.urls", "http://localhost:54321");
|
config.Set("server.urls", "http://localhost:54321");
|
||||||
var services = HostingServices.Create(CallContextServiceLocator.Locator?.ServiceProvider, config)
|
var services = HostingServices.Create(CallContextServiceLocator.Locator?.ServiceProvider, config)
|
||||||
.BuildServiceProvider();
|
.BuildServiceProvider();
|
||||||
|
var applicationLifetime = services.GetRequiredService<IApplicationLifetime>();
|
||||||
|
|
||||||
var context = new HostingContext()
|
var context = new HostingContext()
|
||||||
{
|
{
|
||||||
Services = services,
|
ApplicationLifetime = applicationLifetime,
|
||||||
Configuration = config,
|
Configuration = config,
|
||||||
ServerName = "Kestrel",
|
ServerFactoryLocation = "Kestrel",
|
||||||
ApplicationStartup = startup,
|
ApplicationStartup = startup,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue