Skip to content
Discussion options

You must be logged in to vote

I think this trigger does what you need:

WeeklyTrigger wTrigger = new WeeklyTrigger();
// Start the trigger at 6:00 a.m. local time
wTrigger.StartBoundary = DateTime.Today + TimeSpan.FromHours(6);
// Sets to run on weekdays
wTrigger.DaysOfWeek = DaysOfTheWeek.Monday | DaysOfTheWeek.Tuesday | DaysOfTheWeek.Wednesday | DaysOfTheWeek.Thursday | DaysOfTheWeek.Friday;
// Run it every week
wTrigger.WeeksInterval = 1;
// Repeat every 15 minutes for 17 consecutive hours (6am-11pm == 17 hours)
wTrigger.SetRepetition(TimeSpan.FromMinutes(15), TimeSpan.FromHours(17), false);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tolsen64
Comment options

Answer selected by dahall
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants