Search code examples
watinquartz-schedulerquartz.netui-thread

Is it possible to run a quartz.net job on the UI thread?


I'm using Watin for browser testing, which has to run on the UI thread.

I want to schedule a job using Quartz.NET but can't work out a way to run it on the UI thread (using a WPF application)

Any ideas?


Solution

  • I'm not sure how you're running watin but you could: 1. Start the scheduler from inside wherever you are running watin and then connect to it via remoting from the UI thread to schedule the job. 2. Start the scheduler as a windows service and then connect to it via remoting from the UI thread to schedule the job. 3. Write a simple console app that starts the scheduler and exposes it via remoting. Then connect to it from the UI thread to schedule your job.

    Take a look at this answer I wrote up earlier with some code samples: https://stackoverflow.com/questions/1356789/quartz-net-with-asp-net/. Hopefully it will be useful.