/// <summary> /// Cancel Job /// </summary> /// <remarks> /// Cancel a Job. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='transformName'> /// The Transform name. /// </param> /// <param name='jobName'> /// The Job name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CancelJobAsync(this IJobsOperations operations, string resourceGroupName, string accountName, string transformName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CancelJobWithHttpMessagesAsync(resourceGroupName, accountName, transformName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }