• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • jQuery
    • Angular
    • React
    • Vue
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
ScheduledTasks
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

Getting Started
  • Try Now
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.