Hosted services in .net are classes that implement the IHostedService interface and run background tasks.
These tasks can be started as a part of the host’s lifecycle. That means that they start when the application starts.
The hosted services are useful for performing background tasks such as scheduling, long-running operations, or recurring tasks that need to run independently of the main application.
Continue reading