public SearchRecordResult GetScheduledTasks() { SearchRecordResult result = new SearchRecordResult(); //TODO: Fetch a list of reports to be performed at this specific time //I choose to keep a list of reports and their execution time in a database. YMMV return(result); }
private void DoWork(object state) { KnowageController controller = new KnowageController(); SearchRecordResult result = new SearchRecordResult(); result = controller.GetScheduledTasks(); // get list of scheduled task from result.DataTable, if any. }