WorkManager<T> Class
Public Class WorkManager(Of _
T As WorkUnit)
Implements IDisposable
This language is not supported or no code example is available.
Type Parameters
- T
Name | Description | |
---|---|---|
WorkManager() | Standard constructor. | |
WorkManager(IEnumerable<T>) | Constructor with a collection of WorkUnits. | |
WorkManager(T) | Constructor with a single WorkUnit. |
Name | Description | |
---|---|---|
IsQueueEmpty | Indicates whether the queue is empty or not. | |
QueueCount | Gets the number of WorkUnits. |
Name | Description | |
---|---|---|
AppendToQueue(IEnumerable<T>) | Appends a collection of WorkUnit to the working queue. | |
AppendToQueue(T) | Appends a WorkUnit to the working queue. | |
Cancel() | Cancels the current WorkUnit work. | |
ClearQueue() | Clears the queue. | |
Dispose() | Stops the current work, clear the queue, and release every resource. | |
Equals(Object) | Determines whether the specified object is equal to the current object. (inherited from Object). | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object). | |
GetHashCode | Serves as the default hash function. (inherited from Object). | |
GetQueueItems() | Gets the queue of WorkUnits. | |
GetType | Gets the Type of the current instance. (inherited from Object). | |
MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object). | |
RemoveFromQueue(T) | Removes a WorkUnit from the working queue. | |
RemoveFromQueue(workUnitStatus) | Removes all the WorkUnits from the working queue according to their status. | |
Reset() | Stops the current work and clear the queue. | |
Run() | Runs the first WorkUnit synchronously. | |
Run(Environment) | Runs the first WorkUnit asynchronously. | |
RunAll() | Runs all the WorkUnits of the queue one-by-one synchronously. | |
RunAll(Environment) | Runs all the WorkUnits of the queue one-by-one asynchronously. | |
ToString | Returns a string that represents the current object. (inherited from Object). |
Name | Description | |
---|---|---|
WorkManager.QueueCancelled | Occurs when the background work is cancelled. | |
WorkManager.QueueCompleted | Occurs when the background work of a single WorkUnit is completed. | |
WorkManager.WorkUnitCompleted | Occurs when the background work of a single WorkUnit is completed. | |
WorkManager.WorkUnitFailed | Occurs when the background work of a single WorkUnit is completed. |
Name | Description | |
---|---|---|
QueueCancelledEventHandler | Represents the method that will handle the WorkManager.QueueCancelled event. | |
QueueCompletedEventHandler | Represents the method that will handle the WorkManager.QueueCompleted event. | |
WorkUnitCompletedEventHandler | Represents the method that will handle the WorkManager.WorkUnitCompleted event. | |
WorkUnitFailedEventHandler | Represents the method that will handle the WorkManager.WorkUnitFailed event. |
devDept.Eyeshot.WorkManager<T>