예제 #1
0
        public void Execute(OnUpdatedArgs <BatchRun> args)
        {
            var hubContext = GlobalHost.ConnectionManager.GetHubContext <BatchProcessingHub>();
            var batchRun   = args.Item;

            hubContext.Clients.All.updateRun(batchRun.ToSimpleJson(_batchRunUIService.GetCompletionStatus(batchRun)));
        }
예제 #2
0
        public void Execute(OnUpdatedArgs <BatchRunResult> args)
        {
            IHubContext    hubContext     = GlobalHost.ConnectionManager.GetHubContext <BatchProcessingHub>();
            BatchRunResult batchRunResult = args.Item;

            hubContext.Clients.All.updateResult(batchRunResult.Id);
            BatchRun batchRun = batchRunResult.BatchRun;

            hubContext.Clients.All.updateRun(batchRun.ToSimpleJson(_batchRunUIService.GetCompletionStatus(batchRun)));
            hubContext.Clients.All.updateJob(batchRunResult.BatchJob.Id);
        }
예제 #3
0
 public ActionResult Status(BatchRun batchRun)
 {
     ViewData["completion-status"] = _batchRunUIService.GetCompletionStatus(batchRun);
     return(PartialView(batchRun));
 }