Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Creating Daily Triggers with multiple start time using Taskservice 2.0

$
0
0

StartBoundary is a property on all triggers and can be set upon trigger creation. For example, if you wanted to create task that executes every day from this point forward at 2:00 a.m. and 2:00 p.m., you could do the following:

td.Triggers.Add(new DailyTrigger() { StartBoundary = DateTime.Today.AddHours(2) });
td.Triggers.Add(new DailyTrigger() { StartBoundary = DateTime.Today.AddHours(14) });

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>