Пример #1
0
 public TasksController(IGetTask getTask, IAddTask addTask, IHandleAzureBatch handleAzureBatch, ICreateContainerInstance createContainerInstance)
 {
     _getTask                 = getTask;
     _addTask                 = addTask;
     _handleAzureBatch        = handleAzureBatch;
     _createContainerInstance = createContainerInstance;
 }
Пример #2
0
        public IActionResult Get(string id, [FromServices] IGetTask query)
        {
            var result = _executor.ExecuteQuery(query, new TaskDto {
                Id = id.Split('$')[2], ProjectId = id.Split('$')[0] + "$" + id.Split('$')[1]
            });

            return(Ok(result));
        }
Пример #3
0
 public TaskController(IGetTask exercise, IChecksAnswer check)
 {
     this.exercise = exercise;
     this.checks   = check;
 }