private StartDownloadJobResponse StartDownloadJob(BulkDataReportType reportType) { _CurrentOperationName = "startDownloadJob"; var jobRequest = new StartDownloadJobRequest(); jobRequest.downloadJobType = reportType.ToString(); jobRequest.UUID = Guid.NewGuid().ToString(); return(base.startDownloadJob(jobRequest)); }
public void DeleteRecurringJob(BulkDataReportType reportType) { var req = new GetRecurringJobsRequest(); _CurrentOperationName = "getRecurringJobs"; var r = base.getRecurringJobs(req); if (r.recurringJobDetail == null) { return; } foreach (RecurringJobDetail recurringJobDetail in r.recurringJobDetail) { if (!recurringJobDetail.downloadJobType.Equals(reportType.ToString())) { continue; } _CurrentOperationName = "deleteRecurringJob"; var deleteRecurringJobRequest = new DeleteRecurringJobRequest(); deleteRecurringJobRequest.recurringJobId = recurringJobDetail.recurringJobId; var rez = base.deleteRecurringJob(deleteRecurringJobRequest); } }
public void AbortIncompleteJob(BulkDataReportType reportType) { var jobs = GetJobs(); jobs.jobProfile.Where(j => j.jobStatus != JobStatus.Completed && j.jobType.Equals(reportType.ToString())).ToList().ForEach(j => AbortJob(j.jobId)); }