Click or drag to resize

TaskInfoTDirective Class

Friendly version of ApplicationTaskInfo. - The data is replaced by typed task directives. - The progress is replaced by the status. - Easy serialization. - Time properties are DateTime instead of Timestamps.
Inheritance Hierarchy
SystemObject
  MFiles.VAF.AppTasksTaskInfo
    MFiles.VAF.AppTasksTaskInfoTDirective

Namespace:  MFiles.VAF.AppTasks
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.3.623.2
Syntax
public class TaskInfo<TDirective> : TaskInfo
where TDirective : TaskDirective

Type Parameters

TDirective
The type of directive the task uses.

The TaskInfoTDirective type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyActivationTime
The task activation time.
(Inherited from TaskInfo.)
Public propertyDirective
The deserialized task data as a directive.
Public propertyDirectiveType
The true type of the directive.
(Inherited from TaskInfo.)
Public propertyLatestActivity
The latest activity time.
(Inherited from TaskInfo.)
Public propertyQueueId
The id of the queue the task belongs to.
(Inherited from TaskInfo.)
Public propertyState
The state of the task.
(Inherited from TaskInfo.)
Public propertyStatus
The deserialized task progress as status. Can be null!
(Inherited from TaskInfo.)
Public propertyTaskId
The task id.
(Inherited from TaskInfo.)
Public propertyTaskType
The type of task this is.
(Inherited from TaskInfo.)
Top
Methods
  NameDescription
Public methodCanCastTTargetDirective
Resolves whether the true, underlying directive type is assignable to the target directive type.
(Overrides TaskInfoCanCastTTargetDirective.)
Public methodCastTTargetDirective
Casts a TaskInfo to one with a specific directive.
(Overrides TaskInfoCastTTargetDirective.)
Protected methodGetDirective
Helper to delegate to generic implementation.
(Overrides TaskInfoGetDirective.)
Protected methodSetDirective
Helper to delegate to generic implementation.
(Overrides TaskInfoSetDirective(TaskDirective).)
Public methodSetDirectiveData
Sets the directive with raw data from an application task info.
(Overrides TaskInfoSetDirectiveData(Byte).)
Public methodSetProgress
Sets the status with raw progress string from an application task info.
(Inherited from TaskInfo.)
Public methodToJson
Serializes the instance to JSON.
(Overrides TaskInfoToJson.)
Top
See Also