Missed update after rebasing

This commit is contained in:
John Luo 2015-12-18 14:48:13 -08:00
parent bd10d507f8
commit 9edd6f60b9
1 changed files with 28 additions and 26 deletions

View File

@ -30,9 +30,10 @@ namespace Microsoft.AspNet.Server.Kestrel.FunctionalTests
}) })
.Build(); .Build();
var hostBuilder = new WebHostBuilder(config); var builder = new WebApplicationBuilder()
hostBuilder.UseServerFactory("Microsoft.AspNet.Server.Kestrel"); .UseConfiguration(config)
hostBuilder.UseStartup(app => .UseServerFactory("Microsoft.AspNet.Server.Kestrel")
.Configure(app =>
{ {
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>(); var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
app.Run(context => app.Run(context =>
@ -46,7 +47,7 @@ namespace Microsoft.AspNet.Server.Kestrel.FunctionalTests
}); });
}); });
using (var app = hostBuilder.Build().Start()) using (var app = builder.Build().Start())
{ {
using (var client = new HttpClient()) using (var client = new HttpClient())
{ {
@ -84,9 +85,10 @@ namespace Microsoft.AspNet.Server.Kestrel.FunctionalTests
}) })
.Build(); .Build();
var hostBuilder = new WebHostBuilder(config); var hostBuilder = new WebApplicationBuilder()
hostBuilder.UseServerFactory("Microsoft.AspNet.Server.Kestrel"); .UseConfiguration(config)
hostBuilder.UseStartup(app => .UseServerFactory("Microsoft.AspNet.Server.Kestrel")
.Configure(app =>
{ {
var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>(); var serverInfo = app.ServerFeatures.Get<IKestrelServerInformation>();
app.Run(context => app.Run(context =>