Пример #1
0
 public async Task <JobInfoResult> PollJobAsync(JobInfoResult jobInfo)
 {
     if (jobInfo == null)
     {
         throw new ArgumentNullException("jobInfo");
     }
     return(await PollJobAsync(jobInfo.Id));
 }
Пример #2
0
 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));
 }
Пример #5
0
 public Task <BatchInfoResult> CreateJobBatchAsync <T>(JobInfoResult jobInfo, ISObjectList <T> recordsList)
 {
     if (jobInfo == null)
     {
         throw new ArgumentNullException(nameof(jobInfo));
     }
     return(CreateJobBatchAsync(jobInfo.Id, recordsList));
 }
Пример #6
0
 public async Task <JobInfoResult> CloseJobAsync(JobInfoResult jobInfo)
 {
     if (jobInfo == null)
     {
         throw new ArgumentNullException(nameof(jobInfo));
     }
     return(await CloseJobAsync(jobInfo.Id)
            .ConfigureAwait(false) ?? new JobInfoResult());
 }