Class ScheduledTasks
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.
Inheritance
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public static class ScheduledTasks : Object
Methods
CancelWork(String)
Remove a job with a specific name before it is executed.
Declaration
public static bool CancelWork(string sTaskName)
Parameters
System.String
sTaskName
|
Returns
System.Boolean
True if the job was removed successfully |
ScheduleWork(String, UInt32, 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
System.String
sTaskName
The name of the new job. If it is already added then no changes will be made. |
System.UInt32
iMaxDelay
The max delay in milliseconds to wait before starting the job |
SimpleEventHandler
workFunction
The handler to call when starting the job |
Returns
System.Boolean
True if the job was added successfully |