G
Guest
I need a method to be called every 10 Seconds in an ASP.NET web application, and I was wondering the best way of doing it. I created a static Method on a Page and passed it to a Server Timer that is also created as a static instance variable of the same page. The Timer is activated on Application Start. It is working fine until now, except that in the called method, I can't get a reference to the Cache object, since it is only available during a request processing via the Context. So to pass application level data to the method, I created another static variable on the same page
All this looks messy to me, although it is working. I would like to know the right way of doing it.
All this looks messy to me, although it is working. I would like to know the right way of doing it.