Reacting to new hosting API

This commit is contained in:
John Luo 2016-01-07 13:55:41 -08:00
parent 8872037812
commit 07785c9ae0
1 changed files with 4 additions and 2 deletions

View File

@ -47,11 +47,13 @@ namespace Microsoft.AspNet.WebSockets.Client.Test
var application = new WebApplicationBuilder() var application = new WebApplicationBuilder()
.UseConfiguration(config) .UseConfiguration(config)
.UseServerFactory("Microsoft.AspNet.Server.Kestrel") .UseServer("Microsoft.AspNet.Server.Kestrel")
.Configure(startup) .Configure(startup)
.Build(); .Build();
return application.Start(); application.Start();
return application;
} }
} }
} }