dahall / TaskScheduler

Provides a .NET wrapper for the Windows Task Scheduler. It aggregates the multiple versions, provides an editor and allows for localization.
MIT License
1.2k stars 191 forks source link

Unable to set IdleSettings.WaitTimeout to "Do not wait" #905

Closed dahall closed 2 years ago

dahall commented 2 years ago

Discussed in https://github.com/dahall/TaskScheduler/discussions/903

Originally posted by **s-lazukov** September 30, 2021 In the Task Scheduler I can set the "Wait for idle for:" parameter to "Do not wait". How can I set this value in code? If I set IdleSettings.WaitTimeout to TimeSpan.Zero, then the value is not written to the task parameters and the TaskScheduler uses the default value (1 hour)