Full documentation is available at https://www.roundthecode.com/dotnet-code-examples/asp-net-core-hosted-service-dotnet-6
RoundTheCode/asp-net-core-hosted-services
Learn how to run a background task in .NET using hosted services. Use dependency injection and configure in Program.cs or Startup.cs
C#