ITask Interface

IIS 7.0

Defines a class as a transform task for use with the IIS Transform Manager framework.

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

public interface ITask : IDisposable

The ITask type exposes the following members.

Public methodDispose (Inherited from IDisposable.)
Public methodInitializeInitializes the task with objects for reporting status, logging data, and getting metadata from the job manifest.
Public methodStartCalled by the framework to start the task immediately after the Initialize(ITaskStatus, IJobMetadata, ILogger) method runs.

The ITask interface implements the setter injection pattern. As parameters, the Initialize(ITaskStatus, IJobMetadata, ILogger) method takes instances of ITaskStatus, IJobMetadata, and ILogger to explicitly inject dependent objects. For more information, see Inversion of Control Containers and the Dependency Injection Pattern.