Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hosting] Move to GenericHost #24297

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

Kahbazi
Copy link
Member

@Kahbazi Kahbazi commented Jul 24, 2020

Part of #20964

Should I also change the unit tests which uses WebHostBuilder, or thoses unit tests are directly for WebHostBuilder?

@Kahbazi Kahbazi requested a review from Tratcher as a code owner July 24, 2020 20:07
@ghost ghost added the area-hosting label Jul 24, 2020
@Tratcher
Copy link
Member

Should I also change the unit tests which uses WebHostBuilder, or thoses unit tests are directly for WebHostBuilder?

I think we've already converted the Hosting tests that can be converted, many tests cover both WebHostBuilder and HostBuilder. Let me know if you see any that use new WebHostBuilder directly and are testing something not specific to that class.

@Tratcher Tratcher requested a review from BrennanConroy July 24, 2020 20:15
@Tratcher Tratcher closed this Jul 25, 2020
@Tratcher Tratcher reopened this Jul 25, 2020
.UseConfiguration(config)
.UseKestrel()
.UseStartup<StartupBlockingOnStart>()
var host = new HostBuilder()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this sample will hang if Stop/StopAsync isn't called?

@BrennanConroy BrennanConroy merged commit 747957b into dotnet:master Jul 27, 2020
@BrennanConroy
Copy link
Member

Thanks!

@Kahbazi Kahbazi deleted the kahbazi/HostingHostBuilder branch July 28, 2020 01:16
@amcasey amcasey added the area-hosting Includes Hosting label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-hosting Includes Hosting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants