public async Task <IActionResult> Tasks(string tableId)
        {
            ViewBag.TableId = tableId;

            TaskRecords records = await TableRecordsAPIClient.GetRecrds <TaskRecords>(tableId);

            return(View(records));
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
 public void Bind(int taskId, TaskRecords owner)
 {
     TaskId = taskId;
     Owner  = owner;
 }
Пример #4
0
 public TaskModel() : base(Tasks.Instance)
 {
     _records = new TaskRecords();
 }