From e1301925c0ecfe9e41045ab5a1569716aa6383db Mon Sep 17 00:00:00 2001 From: Praburaj Date: Thu, 26 Feb 2015 12:26:50 -0800 Subject: [PATCH] Reacting to hosting api changes --- .../KestrelWebSocketHelpers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.AspNet.WebSockets.Client.Test/KestrelWebSocketHelpers.cs b/test/Microsoft.AspNet.WebSockets.Client.Test/KestrelWebSocketHelpers.cs index 5e54941ae4..203e9d2722 100644 --- a/test/Microsoft.AspNet.WebSockets.Client.Test/KestrelWebSocketHelpers.cs +++ b/test/Microsoft.AspNet.WebSockets.Client.Test/KestrelWebSocketHelpers.cs @@ -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(); var context = new HostingContext() { - Services = services, + ApplicationLifetime = applicationLifetime, Configuration = config, - ServerName = "Kestrel", + ServerFactoryLocation = "Kestrel", ApplicationStartup = startup, };