title: Quartz.net in WCF
body: <p>I have a service:</p>
  
  <pre><code>[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] 
  public class PremieraInteraction : ServiceInit, IPremieraInteraction
  {
      public PremieraInteraction()
      {
          ISchedulerFactory schedFact = new StdSchedulerFactory();
          // get a scheduler
          IScheduler sched = schedFact.GetScheduler();
          sched.Start();
  
          // construct job info
          IJobDetail jobDetail = JobBuilder.Create&lt;PremieraUpdate&gt;().WithIdentity("PremieraUpdateJob").Build();
  
          ITrigger trigger =
          TriggerBuilder.Create().WithIdentity("PremieraUpdateTrigger").StartNow().WithSimpleSchedule(
          x =&gt; x.WithIntervalInSeconds(10)).Build();
  
          sched.ScheduleJob(jobDetail, trigger); 
      }
  
  }
  </code></pre>
  
  <p>This is the job:</p>
  
  <pre><code>public class PremieraUpdate:IJob
      {
          public void Execute(IJobExecutionContext context)
          {
              Debug.WriteLine("Fire");
          }
      }
  </code></pre>
  
  <p>The problem is that it works only once. Why does the scheduler not repeat every 10 seconds?</p>