TaskStatus Class

Provides a status callback mechanism for the task.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.Web.Media.TransformManager..::..TaskStatus

Namespace:  Microsoft.Web.Media.TransformManager
Assembly:  Microsoft.Web.Media.TransformManager.Common (in Microsoft.Web.Media.TransformManager.Common.dll)

Syntax

'Declaration

  Public Class TaskStatus _
    Implements ITaskStatus, IDisposable
'Usage

  Dim instance As TaskStatus
  public class TaskStatus : ITaskStatus, IDisposable
  public ref class TaskStatus : ITaskStatus, 
    IDisposable
  type TaskStatus =  
    class
        interface ITaskStatus
        interface IDisposable
    end
  public class TaskStatus implements ITaskStatus, IDisposable

The TaskStatus type exposes the following members.

Constructors

  Name Description
Public method TaskStatus Initializes a new instance of the TaskStatus class by using the specified manifest and logger.

Top

Properties

  Name Description
Public property Message
Public property PercentComplete Gets the percentage of task completion.
Public property Status Gets the status of the task.
Public property TaskChildProcessId Gets the ID of the child process of the task.
Public property TaskCount Gets the task count.
Public property TaskIndex Gets the task index.

Top

Methods

  Name Description
Public method Dispose() () () () Disposes task resources.
Protected method Dispose(Boolean) Disposes task resources and optionally releases the managed resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SetTaskChildProcessId Sets the ID of the child process of the task.
Public method SetTaskCount Sets the number of tasks to be performed by the scheduler.
Public method SetTaskIndex Sets the index of the task to be performed by the scheduler.
Public method ToString (Inherited from Object.)
Public method UpdateStatus Updates the status to an ongoing task by using the specified percentage complete, status, and message.

Top

Remarks

Task status is reported back through the Scheduler object. Initialize this object using a manifest that contains scheduler information. Each task will be passed an object that implements this interface through dependency injection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Web.Media.TransformManager Namespace