Click or drag to resize

WorkCollector Class

Class which collects work to be done later in the form of WorkItem instances.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCore.WorkBrokerWorkCollector

Namespace:  SD.LLBLGen.Pro.ApplicationCore.WorkBroker
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public class WorkCollector

The WorkCollector type exposes the following members.

Constructors
  NameDescription
Public methodWorkCollector
Initializes a new instance of the WorkCollector class.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of work items queued in this instance.
Public propertySubTaskProgressInitHandler
The handler of the SubTaskProgressInitCallBack. Setting this property will allow Start to reflect its current progress of subtasks executed within a general task in the progress viewer.
Public propertySubTaskProgressTaskCompletedHandler
The handler of the SubTaskProgressTaskCompletedCallBack. Setting this property will allow Start to reflect its current progress of subtasks executed within a general task in the progress viewer.
Public propertySubTaskProgressTaskStartHandler
The handler of the SubTaskProgressTaskStartCallBack. Setting this property will allow Start to reflect its current progress of subtasks executed within a general task in the progress viewer.
Public propertyTaskProgressInitHandler
The handler of the TaskProgressInitCallBack. Setting this property will allow Start to reflect its current progress of general tasks in the progress viewer.
Public propertyTaskProgressTaskCompletedHandler
The handler of the TaskProgressTaskCompletedCallBack. Setting this property will allow Start to reflect its current progress of general tasks in the progress viewer.
Public propertyTaskProgressTaskStartHandler
The handler of the TaskProgressTaskStartCallBack. Setting this property will allow Start to reflect its current progress of general tasks in the progress viewer.
Top
Methods
  NameDescription
Public methodAddWork
Adds the work specified.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPerformWork
Performs the work.
Public methodSetCallBacks
Sets the call backs to use for this generator
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Not thread safe, meaning when this collector is performing work, it assumes no new work is added to it. This can be changed easily though: a lock has to be added to make Add and PerformWork wait for each other when accessing the queue.
See Also