ClassScheduledTasks
The ScheduledTasks class allows addition of jobs by name. It ensures that ONE instance of the named job will occur at some point in the future, between 0 and a specified max delay. If you queue multiple instances of the same-named Task, it's only done once.
Definition
Namespace:Fiddler
Assembly:FiddlerCore.dll
Syntax:
public static class ScheduledTasks
Inheritance: objectScheduledTasks
Inherited Members
Methods
CancelWork(string)
Remove a job with a specific name before it is executed.
ScheduleWork(string, uint, SimpleEventHandler)
Schedule a new job with a specific name and max delay to be run by the periodic worker instance
Declaration
public static bool ScheduleWork(string sTaskName, uint iMaxDelay, SimpleEventHandler workFunction)
Parameters
sTaskName
The name of the new job. If it is already added then no changes will be made.
iMaxDelay
The max delay in milliseconds to wait before starting the job
workFunction
The handler to call when starting the job
Returns
True if the job was added successfully