This project has moved. For the latest updates, please go here.

Create trigger runs every hour in specific minute

Topics: Examples
Mar 12, 2013 at 4:41 PM
How to implement trigger to run for example every hour in a day on minute 30 , so it will be 12:30 , 1:30 , 2:30 .... etc ?
Coordinator
Mar 12, 2013 at 5:35 PM
DailyTrigger dt = new DailyTrigger();
dt.StartBoundary = DateTime.Today.AddMinutes(30);
dt.Repetition.Duration = TimeSpan.FromHours(23);
dt.Repetition.Interval = TimeSpan.FromHours(1);
new TaskService().AddTask(taskName, dt, new ExecAction("notepad.exe", "c:\\test.log", null));