title: Timer Class in ASP.NET
body: <p>I have this code in the asp.net application start evert, and I'm not really familar with the Timer class but what I want to do is have one Trigger that goes off every night at 11 pm, one that goes off at 5:30 in the morning and then every hour after that.</p>
  
  <pre><code>private System.Threading.Timer timer;
  protected void Application_Start(object sender, EventArgs e)
  {
  
      int intervalMilliseconds = 60 * 1000; 
      timer = new System.Threading.Timer(new System.Threading.TimerCallback(TimedEvent), null, intervalMilliseconds, intervalMilliseconds);
  }
  protected void Application_End(object sender, EventArgs e)
  {
      if (timer != null) timer.Dispose();
  }
  private void TimedEvent(object stateInfo)
  {
      MyClass.ExecuteCode();
  
  }
  </code></pre>
  
  <p>*Please no answers in the way of "don't use asp.net to do triggers because of the lifecycle". 
  *Again - please no posts on what not to use. I've received two post both telling me what not to use and both not related to my question which is about the Timer class and how to use it.</p>