Any worker services examples?

I don’t really want to run Hangfire as part of my website. This way, I could move the jobs to another server if I wanted.

So I was thinking of creating a Windows Service, so it would always be running. However, it appears Visual Studio only makes Windows Service apps for .NET Framework. With .NET Core, it appears we’re supposed to be using Worker Services.

Are there any Hangfire examples using Worker Services? I couldn’t seem to find any.

Again, I don’t want this to be part of my website application.

Hey Jonathan, how are you? I’m currently running Hangfire and it’s jobs as part of a single Windows Service process using dotnet core 6.

The service is installed as a Windows Service, and not as Background worker.

I’ll try to change my code to start using Background worker, and after I do I can share my solution if you.

Thanks