❔ How to restart a BackgroundService
Searching the internets, I seem to be finding answers that don't really seem right, and not good even if they are right.
Is there a way to get the instance of a hosted service that may have stopped so that I can restart it?
I tried this, but service ended up being
Is there a way to get the instance of a hosted service that may have stopped so that I can restart it?
I tried this, but service ended up being
null in this case: