Click or drag to resize

TaskWorker class

Executes a transferred action in a separate task.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationControlTaskWorker

Namespace: NetEti.ApplicationControl
Assembly: NetEti.TaskWorker (in NetEti.TaskWorker.dll) Version: 1.0.0+bef1165e3f26a8e8b98fdf687859f92963581afa
Syntax
public class TaskWorker : IDisposable

The TaskWorker Type exposes the following members.

Constructors
 NameDescription of the
Public MethodTaskWorker Standard constructor.
Back to the top
Properties
 NameDescription of the
Public PropertyWorkerStatus Current status of the TaskWorker: Ready, Running or Halted.
Back to the top
Methods
 NameDescription of the
Public MethodBreakTask Cancel the task.
Public MethodContinueTask Allows the paused TaskWorker to continue running.
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) Tidying up here.
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Overwrites ObjectFinalise)
Public MethodHaltTask Attempts to stop the TaskWorker (Loop+Sleep).
Public MethodOnTaskProgressChanged Reports the task progress to routines that are in TaskProgressChanged have mounted.
Public MethodOnTaskProgressFinished Reports the end of the task to routines that are in TaskProgressFinished have been added.
Public MethodRunTask(ActionTaskWorker) Starts the processing of an asynchronous task (is itself still synchronous).
Public MethodRunTask(ActionTaskWorker, Object, Object) Starts the processing of an asynchronous task (is itself still synchronous).
Public MethodWaitForTask Waits for the task to finish.
Back to the top
Events
 NameDescription of the
Public EventTaskProgressChanged Is called up when the processing progress of a task has changed.
Public EventTaskProgressFinished Is called up when the processing of a task has been completed.
Back to the top
Remarks
File: TaskWorker.cs Author: Erik Nagel, NetEti 25/04/2013 Erik Nagel: created 2013-09-10 Erik Nagel: RunTask with parameter transfer implemented.
See also