Mubi,
I recently implemented an application that needed to refresh data from a
feed every minute and I was going to try to use a timer on it.
I had the same problem as you, so what I did was, in the begin request even
handler in the global asax, I updated my data from the feed then put the time
into an application state variable. on every begin request, if the current
time was more than a minute on from the one stored in the application state
variable then it updated the data from the feed and also updated the
application state variable
This approach is working for my situation. You probably need to define if
you need your timed event to run twenty four seven, or is it only required
when people are accessing the service?
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"Mubi" wrote:
I am using VS2003 and developing web services. We also need a timed
activity to be performed on the server. If i drag a timer and place it
on global.asax, add interval and timer handler. it doesnot work. Is
there anyone with the answer. How could i achieve this functionality.