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))); }
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); }
public ActionResult Status(BatchRun batchRun) { ViewData["completion-status"] = _batchRunUIService.GetCompletionStatus(batchRun); return(PartialView(batchRun)); }