Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight schedule an event at a specific time

I'm trying to find a way to trigger a Silverlight event to occur at a specific time of the day. The app will be run out of browser and will be running all the time. I have found some methods that use a timer to fire an event every minute and then check if it is the correct time to do something, but that sounds messy. Is there some way of firing an event at, for example, 10:34AM on 23 September 2010?

like image 643
Snowwire Avatar asked Oct 15 '10 06:10

Snowwire


1 Answers

If you want timer to survive application restart I suggest use polling and persist scheduled tasks somewhere.

Otherwise just set timer interval to timespan between current and scheduled time.

like image 175
shatl Avatar answered Oct 14 '22 08:10

shatl