public async Task <JobInfoResult> PollJobAsync(JobInfoResult jobInfo) { if (jobInfo == null) { throw new ArgumentNullException("jobInfo"); } return(await PollJobAsync(jobInfo.Id)); }
public async Task <BatchInfoResult> CreateJobBatchAsync <T>(JobInfoResult jobInfo, ISObjectList <T> recordsList) { if (jobInfo == null) { throw new ArgumentNullException("jobInfo"); } return(await CreateJobBatchAsync(jobInfo.Id, recordsList).ConfigureAwait(false)); }
public Task <JobInfoResult> PollJobAsync(JobInfoResult jobInfo, CancellationToken token) { if (jobInfo == null) { throw new ArgumentNullException("jobInfo"); } return(PollJobAsync(jobInfo.Id, token)); }
public Task <BatchInfoResult> CreateJobBatchAsync <T>(JobInfoResult jobInfo, ISObjectList <T> recordsList, CancellationToken token) { if (jobInfo == null) { throw new ArgumentNullException("jobInfo"); } return(CreateJobBatchAsync(jobInfo.Id, recordsList, token)); }
public Task <BatchInfoResult> CreateJobBatchAsync <T>(JobInfoResult jobInfo, ISObjectList <T> recordsList) { if (jobInfo == null) { throw new ArgumentNullException(nameof(jobInfo)); } return(CreateJobBatchAsync(jobInfo.Id, recordsList)); }
public async Task <JobInfoResult> CloseJobAsync(JobInfoResult jobInfo) { if (jobInfo == null) { throw new ArgumentNullException(nameof(jobInfo)); } return(await CloseJobAsync(jobInfo.Id) .ConfigureAwait(false) ?? new JobInfoResult()); }