Reacting to hosting api changes

This commit is contained in:
Praburaj 2015-02-26 12:26:50 -08:00
parent 42aedab4ec
commit e1301925c0
1 changed files with 3 additions and 2 deletions

View File

@ -48,12 +48,13 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
config.Set("server.urls", "http://localhost:54321");
var services = HostingServices.Create(CallContextServiceLocator.Locator?.ServiceProvider, config)
.BuildServiceProvider();
var applicationLifetime = services.GetRequiredService<IApplicationLifetime>();
var context = new HostingContext()
{
Services = services,
ApplicationLifetime = applicationLifetime,
Configuration = config,
ServerName = "Kestrel",
ServerFactoryLocation = "Kestrel",
ApplicationStartup = startup,
};