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

Add warning that VS and Docker don't hit Stop events #34407

Closed
JohnGoldsmith opened this issue Dec 20, 2024 · 2 comments
Closed

Add warning that VS and Docker don't hit Stop events #34407

JohnGoldsmith opened this issue Dec 20, 2024 · 2 comments

Comments

@JohnGoldsmith
Copy link

JohnGoldsmith commented Dec 20, 2024

Description

Hi, I don't think I've missed it in this article, but I've found that when trying to debug BackgroundService stop events in Visual Studio and Docker Desktop, the process is terminated and code in these events is never hit.

It would be helpful to highlight this somewhere in the article, unless you feel that it's too specific to a particular IDE / Setup?

You can see an issue that I raised about this in the DockerTools issues repo here:

microsoft/DockerTools#451

I don't think it's necessary to add the workaround, but just highlighting the behaviour would save people a lot of time. Or at least me anyway :)

Best regards, John

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-9.0&tabs=visual-studio

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/host/hosted-services.md

Document ID

b2dece1f-15b8-03af-6d52-7cc070432b4b

Article author

@tdykstra

Related Issues

@tdykstra
Copy link
Contributor

tdykstra commented Dec 23, 2024

... it's too specific to a particular IDE / Setup

Yes, but you could create a question and answer on StackOverflow.

@JohnGoldsmith
Copy link
Author

... create a question and answer on StackOverflow.

That's fine. Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants