I ve started a timer to visit my application every 20 minuates in Applicaiton_start
in global.asax
.
void Application_Start(object sender, EventArgs e)
{
System.Timers.Timer tm = new System.Timers.Timer(20 * 60 * 1000);
tm.Elapsed += new System.Timers.ElapsedEventHandler(tm_Elapsed);
}
void tm_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
System.Net.WebRequest rqst = System.Net.WebRequest.Create("MySite URL");
rqst.GetResponse();
}
Is this a safe way or anyother ways. I am doing so to execute schedule jobs using quartz.net...