c# - News/message replay at specific times -


i have list objects. each newsitem has 2 properties: string headline { get; set; } datetime postedon { get; set; }

i'm trying write "replay" code retrieves yesterday's news items db , publishes each 1 of them @ exact (or exact) time posted, , display them live feed in wpf app.

i understand scheduling posts done system.threaing.timer. e.g. find next post postedon.time > datetime.now.time, schedule timer, , in timer_elapsed method raise posted event of sort.

however i'm wondering if there more "modern" way of doing in c#, e.g. tasks or reactive extensions / observables. i've noticed there observable.replay method can't seem find examples. not sure if it's applicable in case.

any appreciated.

check out quartz.net open sourced c# scheduler library.

check out quick start. @ end in public class hellojob, can replace object publish/display them live feed in wpf app.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -