コード例 #1
0
        private StartDownloadJobResponse StartDownloadJob(BulkDataReportType reportType)
        {
            _CurrentOperationName = "startDownloadJob";

            var jobRequest = new StartDownloadJobRequest();

            jobRequest.downloadJobType = reportType.ToString();
            jobRequest.UUID            = Guid.NewGuid().ToString();

            return(base.startDownloadJob(jobRequest));
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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));
        }