BackgroundService not stopping gracefully with an open Blazor Server SignalR circuit on dotnet 9 #59655
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
The BackgroundService stoppingToken is not triggering instantly when there is a browser session open with a Blazor Server interactive page.
The gracefully shutdown is not happening as expected when doing a Ctrl+C on Console.
The same code work as expected on .net 8
If you navigate to a statically rendered page, the issue does not happens.
Expected Behavior
The stoppingToken of all Hosted Service should trigger immediately.
Steps To Reproduce
Exceptions (if any)
No response
.NET Version
9.0.101
Anything else?
No response
The text was updated successfully, but these errors were encountered: