title: Quartz.Net cron trigger C#
body: <p>I'm using Quartz.NET for job scheduling in my ASP.NET application, and I have created one trigger in my <code>global.asax</code> file: </p>
  
  <pre><code>// Code that runs on application startup
  ISchedulerFactory schedFact = new StdSchedulerFactory();
  // get a scheduler
  IScheduler sched = schedFact.GetScheduler();
  sched.Start();
  // construct job info
  JobDetail jobDetail = new JobDetail("mySendMailJob", typeof(SendMailJob));
  
  SimpleTrigger trigger = new SimpleTrigger("myTrigger",
                          null,
                          DateTime.UtcNow,
                          null,
                          SimpleTrigger.RepeatIndefinitely,
                          TimeSpan.FromSeconds(60));
  
  sched.ScheduleJob(jobDetail, trigger);
  </code></pre>
  
  <p>This code works fine for me and fires after every 1 minute and does my required work.</p>
  
  <p>I tried to create another trigger in this way to fire at a specific time of the day like 10.00 AM, but it's not working for me. I also want to create misfire instructions. Suppose my trigger is not fired on specific time; how do I get misfire instructions to reload my trigger to do the job?</p>
  
  <pre><code>ISchedulerFactory schedFact = new StdSchedulerFactory();
  // get a scheduler
  IScheduler sched = schedFact.GetScheduler();
  sched.Start();
  // construct job info
  JobDetail jobDetail = new JobDetail("mySendMailJob", typeof(SendMailJob));
  
  Trigger trigger2 = TriggerUtils.MakeDailyTrigger(10, 00);
  
  // schedule the job for execution
  //trigger2.Name = "mySendMailTrigger";
  sched.ScheduleJob(jobDetail, trigger2);
  </code></pre>