private void AddJobsToScheduler(List <JobDefinition> jobDefinitions) { if (jobDefinitions == null || jobDefinitions.Count <= 0) { return; } var jobs = JobFactory.CreateFromJobDefinitions(jobDefinitions); jobs.ForEach(j => _scheduler.AddJobAndCreateTriggers(j)); _scheduler.SetupJobDependencies(jobs); _scheduler.ListenerManager.AddJobListener(new ConsoleJobListener(), GroupMatcher <JobKey> .AnyGroup()); }