Date: 2024-11-07 06:29:09
Score: 6.5
🚩
Natty:
I don't have enough reputation for posting in the comment section. Also, this may not be what you're looking for, but could you enclose everything in the overridden ExecuteAsync() in a try-catch block that handles this failure?
Maybe StopApplication() could help?
https://learn.microsoft.com/en-us/dotnet/core/extensions/workers#:~:text=hostApplicationLifetime.StopApplication()%3B
How to cancel manually a BackgroundService in ASP.net core
Reasons:
- RegEx Blacklisted phrase (1.5): I don't have enough reputation
- Probably link only (1):
- Low length (0.5):
- No code block (0.5):
- Ends in question mark (2):
- Low reputation (1):
Posted by: chandanbsd