How to create a reference to an instantiated object within a Quartz.Net job?

I have a windows service with embedded Quartz.Net but can't seem to find a way to create a reference to an instantiated object within a Quartz.Net job...

When the windows service is started it instantiates some objects for logging, database access and other purposes so I'd like my Quartz.Net jobs to use these already instantiated objects instead of creating its own instances of these objects. However, Quartz.Net jobs are instantiated by the scheduler using the no-argument constructor and hence there is no way to pass a reference using the constructor.

Do I have to create my own implementation of the JobFactory and is that the only way to achieve this?

6
задан Dean Kuga 3 January 2011 в 17:22
поделиться