This is an awesome framework. It’s been working like a charm for my ASP.NET application. However from within the same ASP.NET app I have some legacy EXEs that I have to launch and wait in the context of BackgroundJob.Enqueue. Can I do Process.Start from within Hangfire and wait for it’s process exit? I tried, but the wait call returns immediately. I know I have to re-factor the EXEs someday, but a is there a mechanism in the interim? Or what is the best practice in such a siutation?
Sounds more like a generic .Net question than HangFire. Have you looked at http://stackoverflow.com/questions/3147911/wait-till-a-process-ends ?
Never mind. I have since then re-factored the concerned EXEs out to shared code that can be called from Hangfire.