How can I get Quartz to fire a trigger on an already created and initialized object?
eg.
public class Foo : IJob
{
public Foo ( configuration items ... ) { }
}
Foo f = new Foo( );
Schedular sched = new SchedulerFactory().GetScheduler();
JobDetail jD = new JobDetail("fooDetail", null typeof(Foo));
Trigger trig = TriggerUtils.MakeSecondlyTrigger(15);
sched.ScheduleJob( jD, trig );
sched.Start();
Since foo does not have a 0 args constructor, Quartz.NET creates problems by instantiating the task and starting it. Is there a way to get Quartz to call an instance of Foo, f?
Please forgive me if I miss the fundamental fact about the quartet and its use.
source
share