Question

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?

Was it helpful?

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.

OTHER TIPS

I am not familiar with Quartz.NET but the Java version gives ThreadPool interface which can be implemented to make custom threadpool implementations. I don't understand why you would want to run it in a UI thread which is already dedicated to another task.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top