Delay Class
The Delay workflow element puts an arbitrary delay in the execution of a workflow.
Inheritance Hierarchy
System Object
  CrawlerLib.Engine.Workflow WorkflowChildBase
    CrawlerLib.Engine.Workflow ProcessableWorkflowChildBase
      CrawlerLib.Engine.Workflow Delay

Namespace: CrawlerLib.Engine.Workflow
Assembly: CrawlerLib.Engine (in CrawlerLib.Engine.dll) Version: 2.1.5266.17437 (2.1.5266.17437)
Syntax
public class Delay : ProcessableWorkflowChildBase

The Delay type exposes the following members.

Constructors
Methods
  NameDescription
Abort
Aborts the current instance
(Overrides ProcessableWorkflowChildBase Abort .)
BeginParentReference
The begin parent reference.
(Inherited from WorkflowChildBase.)
Dispose
The dispose.
(Inherited from WorkflowChildBase.)
EndParentReference
The end parent reference.
(Inherited from WorkflowChildBase.)
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Finalizes an instance of the WorkflowChildBase class.
(Inherited from WorkflowChildBase.)
GetAwaiter
Gets an awaiter to await this workflow element
GetCostAggregator
The get cost aggregator.
(Inherited from WorkflowChildBase.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetProcessingInfo
Gets the processing information for the current instance
(Overrides WorkflowChildBase GetProcessingInfo .)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MarkFailed
Marks the child as failed.
(Inherited from WorkflowChildBase.)
MarkSuccessful
Marks the the child as successful.
(Inherited from WorkflowChildBase.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnDispose
Disposes this instance
(Overrides WorkflowChildBase OnDispose(Boolean).)
Process
Processes this instance
(Overrides ProcessableWorkflowChildBase Process .)
SetParentLimit (Inherited from WorkflowChildBase.)
SetWorkflowParentForNewChildren
Sets the workflow parent for new children.
(Inherited from WorkflowChildBase.)
StartWork
Starts the work of this instance
(Overrides WorkflowChildBase StartWork .)
ToString
Returns a String that represents this instance.
(Overrides WorkflowChildBase ToString .)
Top
Properties
  NameDescription
DelayMilliseconds
Gets the delay in milliseconds.
IsDisposed
Gets a value indicating whether is disposed.
(Inherited from WorkflowChildBase.)
IsParentReferenced
Gets a value indicating whether is parent referenced.
(Inherited from WorkflowChildBase.)
ParentLimit
Gets the parent limit.
(Inherited from WorkflowChildBase.)
ProcessingInfo
Gets the processing information.
ScheduledTime
Gets the scheduled time.
Success
Gets or sets a value indicating whether success.
(Inherited from WorkflowChildBase.)
Task
Gets the task.
(Inherited from WorkflowChildBase.)
WorkflowIndex
Gets the child index.
(Inherited from WorkflowChildBase.)
WorkflowParent
Gets the workflow parent.
(Inherited from WorkflowChildBase.)
Top
Remarks
This is the recommended mechanism to put a delay into a workflow. Don’t use Thread.Sleep() or any other blocking method to achieve delays. This would block the execution threads of the Engine
Examples
await new Delay(1000);
new Delay(1000, delay => { /* Success Handler */} );
See Also