C# Class Microsoft.WindowsAzure.MediaServices.Client.Tests.JobTests

Exibir arquivo Open project: Azure/azure-sdk-for-media-services

Public Methods

Method Description
CreateAndSubmitOneTaskJob ( CloudMediaContext context, string name, IMediaProcessor mediaProcessor, string preset, IAsset asset, TaskOptions options ) : IJob
GetEncoderMediaProcessor ( CloudMediaContext context ) : IMediaProcessor
GetMediaProcessor ( CloudMediaContext context, string mpName ) : IMediaProcessor
GetWamePreset ( IMediaProcessor mediaProcessor ) : string
VerifyAllTasksFinished ( string jobId ) : void
WaitForJob ( string jobId, JobState jobState, Action verifyAction, Action progressChangedAction = null ) : void

Private Methods

Method Description
CreateJobFromTemplate ( ) : void
CreateSmoothAsset ( ) : IAsset
CreateSmoothAsset ( CloudMediaContext mediaContext, string filePaths, AssetCreationOptions options ) : IAsset
CreateSmoothAsset ( string filePaths ) : IAsset
GenerateName ( string name ) : string
IsFinalJobState ( JobState jobState ) : bool
SetupTest ( ) : void
ShouldCancelJobAfterSubmission ( ) : void
ShouldContainTaskHistoryEventsOnceJobFinished ( ) : void
ShouldCreateJobPreset ( ) : void
ShouldCreateJobWithMultipleAssetsAndValidateParentLinks ( ) : void
ShouldDeleteJobInCancelledState ( ) : void
ShouldDeleteJobInFinishedState ( ) : void
ShouldFailJobWhenTryingAddInputAssetToOutputAssetOfTask ( ) : void
ShouldFailJobWhenTryingAddOutputAssetFromDifferentJobToTask ( ) : void
ShouldFinishJobCreatedFromThumbnailXml ( ) : void
ShouldFinishJobWithErrorWithInvalidPreset ( ) : void
ShouldFinishJobWithThumbnailPreset ( ) : void
ShouldFinishJobWithZeroStepThumbnail ( ) : void
ShouldGenerateMetadataFile ( ) : void
ShouldQueryJobByStartTime ( ) : void
ShouldReceiveNotificationsForCompeletedJob ( ) : void
ShouldReportJobProgress ( ) : void
ShouldSubmitAndFihishMp4ToAudioJob ( ) : void
ShouldSubmitAndFihishMp4ToSmoothJob ( ) : void
ShouldSubmitAndFinishChainedTasks ( ) : void
ShouldSubmitAndFinishChainedTasksUsingParentOverload ( ) : void
ShouldSubmitAndFinishEETaskWithStorageProtectedInputAndClearOutput ( ) : void
ShouldSubmitAndFinishJobWhenTryingAddOutputAssetFromSameTask ( ) : void
ShouldSubmitAndFinishJobWithMesAndMultipleTasksAndSharedOutputAsset ( ) : void
ShouldSubmitAndFinishJobWithMultipleAssetAndVerifyOrderOfInputAssets ( ) : void
ShouldSubmitAndFinishJobWithMultipleTasksAndSharedOutputAsset ( ) : void
ShouldSubmitAndFinishJobWithOneTaskEmptyConfiguration ( ) : void
ShouldSubmitAndFinishMp4ToSmoothJobWithStorageProtectedInputsAndOutputs ( ) : void
ShouldSubmitAndFinishPlayReadyProtectedHlsJob ( ) : void
ShouldSubmitAndFinishPlayReadyProtectionJobWithKey ( ) : void
ShouldSubmitAndFinishPlayReadyProtectionJobWithSeed ( ) : void
ShouldSubmitAndFinishPlayReadyProtectionJobWithStorageAndConfigurationEncryption ( ) : void
ShouldSubmitAndFinishSmoothToHlsEncryptedJob ( ) : void
ShouldSubmitAndFinishSmoothToHlsJob ( ) : void
ShouldSubmitJobWhenCreatingTaskWithNoCancelNoDeleteOption ( ) : void
ShouldThrowTryingToCreateJobWithOneTaskAndNoOutput ( ) : void
ShouldThrowTryingToDeleteJobInProcessingState ( ) : void
ShouldThrowTryingTocreateCreateJobWithNoTasks ( ) : void
ShouldThrowTryingUpdateJobPriorityWhenJobIsFinished ( ) : void
ShouldThrowTryingUpdateJobPriorityWhenJobIsProcessing ( ) : void
ShouldUpdateJobPriorityWhenJobIsQueued ( ) : void
TestJobWithTaskNotificationToBothAzureQueueAndWebHookEndPoint ( ) : void
TestJobWithTaskNotificationToWebHookEndPointWithEncryption ( ) : void
UpdatePlayReadyConfigurationXML ( Guid keyId, byte keyValue, Uri licenseAcquisitionUrl, string originalXmlConfiguration ) : string
WaitForJobStateAndUpdatePriority ( IJob job, JobState expectedJobState, int newPriority ) : void

Waits for expected job state and updates job priority.

Method Details

CreateAndSubmitOneTaskJob() public static method

public static CreateAndSubmitOneTaskJob ( CloudMediaContext context, string name, IMediaProcessor mediaProcessor, string preset, IAsset asset, TaskOptions options ) : IJob
context CloudMediaContext
name string
mediaProcessor IMediaProcessor
preset string
asset IAsset
options TaskOptions
return IJob

GetEncoderMediaProcessor() public static method

public static GetEncoderMediaProcessor ( CloudMediaContext context ) : IMediaProcessor
context CloudMediaContext
return IMediaProcessor

GetMediaProcessor() public static method

public static GetMediaProcessor ( CloudMediaContext context, string mpName ) : IMediaProcessor
context CloudMediaContext
mpName string
return IMediaProcessor

GetWamePreset() public static method

public static GetWamePreset ( IMediaProcessor mediaProcessor ) : string
mediaProcessor IMediaProcessor
return string

VerifyAllTasksFinished() public static method

public static VerifyAllTasksFinished ( string jobId ) : void
jobId string
return void

WaitForJob() public static method

public static WaitForJob ( string jobId, JobState jobState, Action verifyAction, Action progressChangedAction = null ) : void
jobId string
jobState JobState
verifyAction Action
progressChangedAction Action
return void