public async Task <IActionResult> Tasks(string tableId) { ViewBag.TableId = tableId; TaskRecords records = await TableRecordsAPIClient.GetRecrds <TaskRecords>(tableId); return(View(records)); }
private void OnTaskSetup(object sender, TaskSetupEventArgs e) { var b = e.TaskSetupContext.BuildSystem(); if (b.IsRunningOnPipelines()) { var currentTask = _engine.Tasks.First(t => t.Name == e.TaskSetupContext.Task.Name); var currentIndex = _engine.Tasks.ToList().IndexOf(currentTask); b.AzurePipelines.UpdateProgress(_parentRecord, GetProgress(currentIndex, _engine.Tasks.Count)); b.AzurePipelines.Commands.SetProgress(GetProgress(currentIndex, _engine.Tasks.Count), string.Empty); var g = e.TaskSetupContext.AzurePipelines() .Commands.CreateNewRecord(currentTask.Name, "build", TaskRecords.Count + 1, new AzurePipelinesRecordData { StartTime = DateTime.Now, ParentRecord = _parentRecord, Progress = 0 }); TaskRecords.Add(currentTask.Name, g); } }
public void Bind(int taskId, TaskRecords owner) { TaskId = taskId; Owner = owner; }
public TaskModel() : base(Tasks.Instance) { _records = new TaskRecords(); }