I have created a Windows Service in .NET Core (also in .NET 5) using a BackgroundService worker, running it as a Windows Service using the IHostBuilder.Us
BackgroundService
IHostBuilder.Us