Share via


IJob Interface

Represents a job object that contains a set of tasks. Each task performs an atomic operation on the input asset(s). A job controls the execution of each task and outputs from one task can be used as inputs to the next task. A job is typically used to process one audio/video presentation. If you are processing multiple videos, create a job for each video to be encoded.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
Public Interface IJob
'Usage
Dim instance As IJob
public interface IJob
public interface class IJob
type IJob =  interface end
public interface IJob

The IJob type exposes the following members.

Properties

  Name Description
Public property Created Gets or sets the DateTime of job creation.
Public property EndTime Gets or sets the DateTime when job ended.
Public property Id Gets or sets the unique identifier set by Media Services.
Public property InputMediaAssets Gets a collection of Asset Identifiers that are inputs to the Job.
Public property JobNotificationSubscriptions Gets the collection of notification subscriptions for the job.
Public property LastModified Gets or sets the DateTime of job last modification.
Public property Name Gets or sets the friendly name for the job. This property is optional.
Public property OutputMediaAssets Gets a collection of Asset Identifiers that are outputs of the Job.
Public property Priority Gets or sets the priority of a job
Public property RunningDuration Gets or sets the elapsed time (in seconds) for the job.
Public property StartTime Gets or sets the DateTime when job has been started.
Public property State Gets or sets the state of the job
Public property Tasks Gets a collection of Tasks that compose the Job.
Public property TemplateId Gets or sets the ID of the JobTemplate entity. This property is optional.

Top

Methods

  Name Description
Public method Cancel Sends request to cancel a job.
Public method CancelAsync Asynchronously sends request to cancel a job.
Public method Delete Deletes this job instance.
Public method DeleteAsync Asynchronously deletes this job instance.
Public method GetExecutionProgressTask Returns a new Task to monitor the job state. The Task finishes when the job finishes.
Public method Refresh Force entity and underlying properties to be refreshed.
Public method SaveAsTemplate Saves this job instance as a job template.
Public method SaveAsTemplateAsync Asynchronously saves this job instance as a job template.
Public method Submit Submits this job instance.
Public method SubmitAsync Asynchronously submits this job instance.
Public method Update Updates this job instance.
Public method UpdateAsync Asynchronously updates this job instance.

Top

Events

  Name Description
Public event StateChanged Occurs when a file download progresses.

Top

See Also

Reference

Microsoft.WindowsAzure.MediaServices.Client Namespace