Constructor injection with Quartz.NET and Simple Injector

According to this blog post, you would need to implement a custom IJobFactory, like this: public class SimpleInjectorJobFactory : IJobFactory { private readonly Container container; private readonly Dictionary<Type, InstanceProducer> jobProducers; public SimpleInjectorJobFactory( Container container, params Assembly[] assemblies) { this.container = container; // By creating producers, jobs can be decorated. var transient = Lifestyle.Transient; this.jobProducers = … Read more

Quartz.Net how to create a daily schedule that does not gain 1 minute per day

You aren’t specifying the interval which happens to default to 1 minute, so it assumes you want to run the job every minute. Try ITrigger trigger = TriggerBuilder.Create() .WithDailyTimeIntervalSchedule (s => s.WithIntervalInHours(24) .OnEveryDay() .StartingDailyAt(TimeOfDay.HourAndMinuteOfDay(13, 0)) ) .Build(); The default should be to run every day, so the OnEveryDay() isn’t really needed. Not sure why you … Read more

Where is the documentation for Quartz.NET configuration files?

I was having a heck of a time finding info on the config format as well. Turns out the Quartz.Net source contains a nice sample App.config file in src/Quartz.Examples. It looks like the snippet below, except that I’ve omitted the Common.Logging configuration, which is explained in detail (with an example) in the Common.Logging documentation. <?xml … Read more