What is the best way to set the next start time? I want to ensure my task will always run at midnight every day.
I tried
ScheduleItem scheduleItem = SchedulingProvider.Instance().GetSchedule("MyTask_Assembly", "");
scheduleItem.NextStart = DateTime.Now.AddDate(1);
to see if I can effect a change to the task next start but it would appear that this does not work.
Thanks