What's the best way to keep a `BackgroundService` alive?

This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
Was this page helpful?