Microsoft.Extensions.Hosting.BackgroundService
Base class for implementing a long running IHostedService.
Gets the Task that executes the background operation.
protected BackgroundService()
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.
Triggered when the application host is ready to start the service.
Triggered when the application host is performing a graceful shutdown.