I am calling an email reminder function at every 1 second in Global.asax. when i set the timer, its working fine for short time frame but not working for larger time frame
Any help would be appreciated!!!!
Reminder function at every 1 second in Global.asax
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Jean PaulRank #32 · 38.5K reputationPosted Mar 7, 2011, 11:21 PM EST
For getting an infinite callback on your methods you should use Caching and Expiry logics.
The idea is that you create an item in the cache and on expiry you set a method to be called.
You can set the cache expiry time to 1 minute and on the callback method you have to
create the cache again. In this way your method will get called as long as the webserver is online.
I am using this way to achieve daily data updations for my website.
http://www.codeproject.com/KB/aspnet/ASPNETService.aspx?msg=3756781#xx3756781xx
Suthish NairRank #92 · 22.8K reputationPosted Mar 8, 2011, 1:07 AM EST