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!!!!
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Mar 8, 2011, 6:07 AM
Jean PaulPosted Mar 8, 2011, 4:21 AM
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