React to WebHostingBuilder
This commit is contained in:
parent
a10245d39f
commit
f71d49744e
|
|
@ -46,11 +46,12 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
|
||||||
config.Add(new MemoryConfigurationSource());
|
config.Add(new MemoryConfigurationSource());
|
||||||
config.Set("server.urls", "http://localhost:54321");
|
config.Set("server.urls", "http://localhost:54321");
|
||||||
|
|
||||||
var engine = WebHost.CreateEngine(config)
|
var host = new WebHostBuilder(CallContextServiceLocator.Locator.ServiceProvider, config)
|
||||||
.UseServer("Kestrel")
|
.UseServer("Kestrel")
|
||||||
.UseStartup(startup);
|
.UseStartup(startup)
|
||||||
|
.Build();
|
||||||
|
|
||||||
return engine.Start();
|
return host.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue