Click or drag to resize

TaskInfo Class

Friendly version of ApplicationTaskInfo. - The data is replaced by typed task directives. - The progress is replaced by the status. - Easy serialization/deserialization. - Time properties are DateTime instead of Timestamps.
Inheritance Hierarchy

Namespace:  MFiles.VAF.AppTasks
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public abstract class TaskInfo

The TaskInfo type exposes the following members.

Constructors
  NameDescription
Protected methodTaskInfo
Initializes a new instance of the TaskInfo class
Top
Properties
  NameDescription
Public propertyActivationTime
The task activation time.
Public propertyDirective
The deserialized task data as a directive.
Public propertyDirectiveType
The true type of the directive.
Public propertyLatestActivity
The latest activity time.
Public propertyQueueId
The id of the queue the task belongs to.
Public propertyState
The state of the task.
Public propertyStatus
The deserialized task progress as status. Can be null!
Public propertyTaskId
The task id.
Public propertyTaskType
The type of task this is.
Top
Methods
  NameDescription
Public methodCanCastTTargetDirective
Resolves whether the true, underlying directive type is assignable to the target directive type.
Public methodCastTTargetDirective
Casts a TaskInfo to one with a specific directive.
Public methodStatic memberFactoryTDirective
Creates a task info. Replaces using the generic constructor, when the actual type isn't known until runtime.
Protected methodGetDirective
Helper to delegate to generic implementation.
Public methodStatic memberParse(Type, String)
Parses json into a corresponding TaskInfo object.
Public methodStatic memberParse(TaskManager, String)
Parses json into a corresponding TaskInfo object, using the TaskManager to determine which directive type is used.
Public methodStatic memberParseTDirective(String)
Parses json into a corresponding TaskInfo object.
Protected methodSetDirective
Helper to delegate to generic implementation.
Public methodSetDirectiveData
Sets the directive with raw data from an application task info.
Public methodSetProgress
Sets the status with raw progress string from an application task info.
Public methodToJson
Serializes the instance to JSON.
Top
See Also