title: Server side Timer class in Asp.Net MVC C#
body: <p>I am trying to implement a timer control within a static class in Asp.Net MVC which get initialized in static constructor. I am expecting that this Timer object should be ticking every 20 sec and should t_Elapsed method in which I want to do some operation. 
  But once I close the browser, Timer object get Disposed and does not work. </p>
  
  <p>Can anyone suggest a way where this timer should keep running even if no one is using the website..</p>
  
  <p>//This is global variable in the static class</p>
  
  <pre><code>static System.Timers.Timer t = null;
  </code></pre>
  
  <p>//this code is executed in static constructor of the same static class</p>
  
  <pre><code>t = new System.Timers.Timer(20000); //Every 20 seconds
  t.Elapsed += t_Elapsed;
  t.Enabled = true;
  </code></pre>