The Task type exposes the following members.

Constructors

  Name Description
Protected method Task
Initializes a new instance of the Task class

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method Execute
Main entry point into Task when it is run on a Host.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetProperty(String)
Returns property value by name. You can find common values for properties using TaskProperties.
Public method GetProperty<(Of <<'(T>)>>)(String)
Returns property value by name. You can find common values for properties using TaskProperties.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveProperty
Removes the property from the property bag. You can find common values for properties using TaskProperties.
Public method SetProgress(Int32)
Sets progress of task. This value will be returned with AGI.Parallel.Client.Job.TaskProgressUpdated event.
Public method SetProgress(Int32, Object)
Sets progress of task. This value will be returned with AGI.Parallel.Client.Job.TaskProgressUpdated event.
Public method SetProperty(String, Object)
Sets properties on Task. You can find common values for properties using TaskProperties.
Public method SetProperty<(Of <<'(T>)>>)(String, T)
Sets property value. You can find common values for properties using TaskProperties.
Public method ToString
Returns a String that represents this instance.
(Overrides Object..::..ToString()()()().)

Properties

  Name Description
Public property Id
Gets the unique handle of task.
Public property IsCancelling
Gets a value indicating whether this task is cancelling.
Public property Name
Gets or sets the display name of the task.
Public property Properties
Gets the properties of the task.
Public property Result
Gets or sets Task's execution result.
Public property StandardError
Gets the standard error of the host that executed the task.
Public property StandardOutput
Gets the standard output of the host that executed the task.
Public property TaskCancellationMessage
Gets the optional task cancellation message.
Public property TaskCancellationReason
Gets the reason why the task was canceled.
Public property TaskStatus
Gets the task status.

Events

  Name Description
Public event Completed
An event that is raised when this task is completed.
Public event ProgressUpdated
An event that is raised when this task's progress is updated.
Public event StatusChanged
An event that is raised when this task's TaskStatus changes.

See Also