Ejemplo n.º 1
0
 /// <summary>
 /// Disables the specified job, preventing new tasks from running.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobId'>
 /// The id of the job to disable.
 /// </param>
 /// <param name='disableTasks'>
 /// What to do with active tasks associated with the job. Possible values
 /// include: 'requeue', 'terminate', 'wait'
 /// </param>
 /// <param name='jobDisableOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <JobDisableHeaders> DisableAsync(this IJobOperations operations, string jobId, DisableJobOption disableTasks, JobDisableOptions jobDisableOptions = default(JobDisableOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.DisableWithHttpMessagesAsync(jobId, disableTasks, jobDisableOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }