private static JobExecutionHistory GetJobHistory(long jobHistoryId)
        {
            JobExecutionHistory jobHistory = null;

            using (AccessPointClient accessPoint = new AccessPointClient())
            {
                jobHistory = accessPoint.GetJobExecutionHistories(new GetJobExecutionHistoriesRequest
                {
                    Skip = 0,
                    Take = 1,
                    Ids  = new long[] { jobHistoryId },
                }).JobHistories.FirstOrDefault();
            }
            return(jobHistory);
        }
Exemple #2
0
        private void ShowExecutionHistories()
        {
            try
            {
                using (AccessPointClient accessPoint = new AccessPointClient())
                {
                    JobExecutionHistory[] jobHistories = accessPoint.GetJobExecutionHistories(new GetJobExecutionHistoriesRequest
                    {
                        Skip   = 0,
                        Take   = HistoryCount,
                        JobIds = new long[] { JobId },
                    }).JobHistories;

                    this.Visible = true;
                    JobHistoryList.DataSource = jobHistories;
                    JobHistoryList.DataBind();
                }
            }
            catch { }
        }