public IActionResult TestStage3(Models.ControllerModels.Administration.ProcessStep input) { if (input.CurrentStep < 0) { return(Ok(new Models.ControllerModels.Administration.ProcessStage { ActionName = "Stage 3", ActionNote = "Running stage 3 of process test", Take = 3, TotalSteps = 6, TotalRecords = 17, })); } Thread.Sleep(3000); return(Ok()); }
public IActionResult TestStage1(Models.ControllerModels.Administration.ProcessStep input) { if (input.CurrentStep < 0) { return(Ok(new Models.ControllerModels.Administration.ProcessStage { ActionName = "Stage 1", ActionNote = "Running stage 1 of process test", Take = 5, TotalSteps = 5, TotalRecords = 23, })); } // Do something with the metrics here, i.e. skip = take * page Thread.Sleep(1000); return(Ok()); }