I have an app that needs to be checked every single database table every minute. The table is indexed from day to day and therefore every time an app is needed to run this investigation.
What is the best way to do this? I can make a background worker thread but if I set it to sleep for 60 seconds after every check, I would miss one minute due to the overhead of making a check call.
Then check, say every 15 seconds and if the minute has changed, then complete the check.
Or should I use some other approach?
I am using WPF, VS2008 and VB.NET
TIA,
Simon
That's what you're after - just set the interval you want, and then attach a method to the tick event - one treatment works.
Comments
Post a Comment