.net running on kestrel cannot start BackgroundService in staging/production environment
I have created a QueuedHostedService extending BackgroundService following official docs here. This runs just fine on development mode and I am able to step into/debug the task passed to the background service when the controller passing the task executes.