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

I want create schedule that will run at 3 Pm and 7 pm on same task

Topics: Examples
May 6, 2014 at 12:29 PM
scheduler should be start on same task
Coordinator
May 6, 2014 at 3:55 PM
Daily trigger with a 3pm start time and a repetition of every 4 hours with a 4 hour duration.
Marked as answer by dahall on 5/6/2014 at 7:55 AM
May 7, 2014 at 7:32 AM
i have written this code

dt.StartBoundary = DateTime.Today + TimeSpan.FromHours(23);
dt.Repetition.Interval = TimeSpan.FromHours(3);
                       dt.Repetition.Duration = TimeSpan.FromHours(4);
it it correct........
May 7, 2014 at 7:57 AM
and also tell me how can i check next schedule star time
May 7, 2014 at 7:58 AM
also tell me How can i check next schedule start time
Coordinator
May 7, 2014 at 3:23 PM
This is the correct code:
// Create a daily trigger that will start running today at 3pm
var dt = new DailyTrigger() { StartBoundary = DateTime.Today.AddHours(15) };
// Have that trigger repeat 4 hours from its start time and then not repeat again
dt.Repetition.Interval = TimeSpan.FromHours(4);
dt.Repetition.Duration = TimeSpan.FromHours(4);
Marked as answer by dahall on 5/7/2014 at 7:23 AM
May 8, 2014 at 6:09 AM
it work fine thanks dahall ......