/// <summary> /// Enables the specified job. /// </summary> /// <param name="context">The account to use.</param> /// <param name="jobId">The id of the job to enable.</param> /// <param name="additionBehaviors">Additional client behaviors to perform.</param> public void EnableJob(BatchAccountContext context, string jobId, IEnumerable <BatchClientBehavior> additionBehaviors = null) { if (string.IsNullOrWhiteSpace(jobId)) { throw new ArgumentNullException("jobId"); } WriteVerbose(string.Format(Resources.EnableJob, jobId)); JobOperations jobOperations = context.BatchOMClient.JobOperations; jobOperations.EnableJob(jobId, additionBehaviors); }