I'm using the C# Task Scheduler Library to manage tasks: https://github.com/dahall/TaskScheduler
On a given task, I can set the "Enabled" boolean and persist the changes:
task.Enabled= true;
task.State.Dump();
task.RegisterChanges();
But the call to RegisterChanges() does not result in a change. Am I missing something? Is there some other way to disable a task using this library?
%d is used to print decimal(integer) number ,while %c is used to print character . If you try to print a character with %d format the computer will print the ASCII code of the character.
C is commonly used on computer architectures that range from the largest supercomputers to the smallest microcontrollers and embedded systems. A successor to the programming language B, C was originally developed at Bell Labs by Ritchie between 1972 and 1973 to construct utilities running on Unix.
Found it. The property to set is not the one on the task itself, but rather in the Definition Settings:
task.Definition.Settings.Enabled = true;
Open source on github is so helpful!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With