Beispiel #1
0
 private static void addExceptionCell(TableRowTag row, HandlerChain chain)
 {
     var exceptionCell = row.Cell();
     var node = chain.OfType<ExceptionHandlerNode>().FirstOrDefault();
     if (node != null)
     {
         var description = Description.For(node);
         var descriptionTag = new DescriptionBodyTag(description);
         exceptionCell.Append(descriptionTag);
     }
 }
Beispiel #2
0
        private static void addExceptionCell(TableRowTag row, HandlerChain chain)
        {
            var exceptionCell = row.Cell();
            var node          = chain.OfType <ExceptionHandlerNode>().FirstOrDefault();

            if (node != null)
            {
                var description    = Description.For(node);
                var descriptionTag = new DescriptionBodyTag(description);
                exceptionCell.Append(descriptionTag);
            }
        }
        public HtmlTag get_job_details_Job(ScheduledJobRequest request)
        {
            var schedule = _persistence.Find(_graph.Name, request.Job);

            var tag = new HtmlTag("div");

            tag.Add("h2").Text("Recent Execution History for " + request.Job);

            var job = _jobs.Jobs.FirstOrDefault(x => JobStatus.GetKey(x.JobType) == request.Job);

            if (job != null)
            {
                var descriptionTag = new DescriptionBodyTag(Description.For(job));
                tag.Append(descriptionTag);
                tag.Append("hr");
                tag.Append("h4").Text("History");
            }

            var history = _persistence.FindHistory(_graph.Name, request.Job);

            tag.Append(new ScheduledJobHistoryTable(history));

            return(tag);
        }
        public HtmlTag get_job_details_Job(ScheduledJobRequest request)
        {
            var schedule = _persistence.Find(_graph.Name, request.Job);

            var tag = new HtmlTag("div");
            tag.Add("h2").Text("Recent Execution History for " + request.Job);

            var job = _jobs.Jobs.FirstOrDefault(x => JobStatus.GetKey(x.JobType) == request.Job);
            if (job != null)
            {
                var descriptionTag = new DescriptionBodyTag(Description.For(job));
                tag.Append(descriptionTag);
                tag.Append("hr");
                tag.Append("h4").Text("History");
            }

            var history = _persistence.FindHistory(_graph.Name, request.Job);
            tag.Append(new ScheduledJobHistoryTable(history));

            return tag;
        }