aspnet / Hosting

[Archived] Code for hosting and starting up an ASP.NET Core application. Project moved to https://github.com/aspnet/Extensions and https://github.com/aspnet/AspNetCore
Apache License 2.0
552 stars 312 forks source link

Add TestHost support for ConfigureWebHost #1583

Closed davidfowl closed 5 years ago

davidfowl commented 5 years ago

Today the TestHost builds and starts the IWebHostBuilder directly in it's constructor https://github.com/aspnet/Hosting/blob/d7b9fd480765bdc01f06441f308fb288e6001049/src/Microsoft.AspNetCore.TestHost/TestServer.cs#L41-L42. This won't work when using ConfigureWebHost. We may need to revisit the design to be something like this https://github.com/aspnet/Hosting/issues/973.