React to WebHostingBuilder

This commit is contained in:
Hao Kung 2015-04-15 12:45:28 -07:00
parent a10245d39f
commit f71d49744e
1 changed files with 4 additions and 3 deletions

View File

@ -46,11 +46,12 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
config.Add(new MemoryConfigurationSource());
config.Set("server.urls", "http://localhost:54321");
var engine = WebHost.CreateEngine(config)
var host = new WebHostBuilder(CallContextServiceLocator.Locator.ServiceProvider, config)
.UseServer("Kestrel")
.UseStartup(startup);
.UseStartup(startup)
.Build();
return engine.Start();
return host.Start();
}
}
}