I have read the hangfire documentation and search through a lot of blog posts and answers on SO.
I just want to be sure that hangfire will work for our use case.
We currently have a couple of jobs (console apps) that perform some business functions. Most of these jobs run daily.
We are looking to integrate hangfire to simplify the task of running and maintaining these jobs.
To achieve this, we want to use the console apps as clients and also have a windows service that has HangFire.Server installed.
The challenge is in keeping the clients running.
We started by scheduling the job and running the server in the same console application. this worked fine.
We scheduled some more jobs and commented out the part to schedule jobs, leaving only the server code. When we run it, we go this error:
Retry attempt 1 of 10: Cannot dynamically create an instance of type 'El…
Maybe we are doing it the wrong way, I can’t tell.
Also to note, the console app is a .NET 6 application and we used DI. But even after following the solutions on numerous blog posts and SO links, it still throws the error.
Any help would be appreciated.