React to aspnet/Configuration #194
This commit is contained in:
parent
9ba11ee04a
commit
58c7eb1826
|
|
@ -42,8 +42,9 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
|
||||||
builder.Run(c => app(c));
|
builder.Run(c => app(c));
|
||||||
};
|
};
|
||||||
|
|
||||||
var config = new ConfigurationSection();
|
var builder = new ConfigurationBuilder();
|
||||||
config.Add(new MemoryConfigurationSource());
|
builder.Add(new MemoryConfigurationSource());
|
||||||
|
var config = builder.Build();
|
||||||
config.Set("server.urls", "http://localhost:54321");
|
config.Set("server.urls", "http://localhost:54321");
|
||||||
|
|
||||||
var host = new WebHostBuilder(CallContextServiceLocator.Locator.ServiceProvider, config)
|
var host = new WebHostBuilder(CallContextServiceLocator.Locator.ServiceProvider, config)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue