Microsoft.Extensions.Hosting.IHostedService
Defines methods for objects that are managed by the host.
Triggered when the application host is ready to start the service.
Triggered when the application host is performing a graceful shutdown.