示例#1
0
 public static void StartJobDataSaver()
 {
     RecurringJob.AddOrUpdate("DataSaver", () => Core.SaveEverything(), CronString.MinuteInterval(5));
 }
 public string GetCronValue(string scheduleName)
 {
     return(CronString.FromSchedule(Items.Cast <ScheduleElement>().FirstOrDefault(e => e.Name == scheduleName)));
 }
示例#3
0
 public static void StartJobWatcherFiveMin()
 {
     RecurringJob.AddOrUpdate("Standard_Tracker", () => Watcher.CheckOnTrackers(TrackInterval.FiveMin), CronString.MinuteInterval(5));
 }