Hello,
I wanted to have the ability to run my application without the need to have HangFire running. (Mainly for local debugging).
I think I can achieve this by creating my own IBackgroundJobClient (I use this instead of static calls) which invokes actions immediately instead of queueing up within the Hangfire infrastructure. I’m intending to do this by executing the actions immediately inside of the Enqueue/schedule etc.
Ignoring the potential for different behaviour, is this approach valid? Is there a better/existing way to “switch off” hangfire but maintain execution of jobs?
Thanks in advance