TaskBase Class
Base class for tasks that can be processed by a CrawlerEngine
Inheritance Hierarchy
System Object
  CrawlerLib.Engine TaskBase

Namespace: CrawlerLib.Engine
Assembly: CrawlerLib.Engine (in CrawlerLib.Engine.dll) Version: 2.1.5266.17437 (2.1.5266.17437)
Syntax
public abstract class TaskBase : IWorkflowParent, 
	IOperationCostAggregator, IDisposable

The TaskBase type exposes the following members.

Constructors
  NameDescription
TaskBase
Initializes a new instance of the TaskBase class
Top
Methods
  NameDescription
AddNewReferencedProperty
The add new referenced property.
AddNewWorkflowChildToStart
Adds the new workflow child to start it.
BeginReference
The begin reference.
DequeueAccessPath T 
Dequeues a access path from the AccessPathManager
Dispose 
The dispose.
Dispose(Boolean)
The dispose.
EndReference
The end reference.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Finalizes an instance of the TaskBase class.
(Overrides Object Finalize .)
ForceTermination
The force termination.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnAllChildrenProcessed
The on all children processed.
OnBeginChildProcessing
The on begin child processing.
OnEndChildProcessing
The on end child processing.
OnWorkflowChildCreated
Called when a workflow child is created.
OnWorkflowChildDisposed
Called when a workflow child is disposed.
RegisterWorkflowChildForProcessing
The register workflow child for processing.
StartWork
Starts the Work of the task
ToString
The to string.
(Overrides Object ToString .)
Top
Properties
  NameDescription
CurrentEngine
Gets the current engine.
CurrentTask
Gets the current task.
Engine
Gets the Engine.
IsDisposed
Gets a value indicating whether is disposed.
IsReferenced
Gets a value indicating whether is referenced.
Item
The this.
Properties
Gets the properties.
TaskCompletedWorkHandler
Gets or sets TaskCompletedWorkHandler.
TaskNumber
Gets the task number.
TaskRequest
Gets or sets TaskRequest.
TaskResult
Gets or sets TaskResult.
Top
Remarks

Typically a derived class should override following method: StartWork  CreateWorkflow must set the TaskResult to a appropriate task result

Workflow Elements (HttpRequest,Delay, …) are started by just creating them.

See Also