public TasksController(IGetTask getTask, IAddTask addTask, IHandleAzureBatch handleAzureBatch, ICreateContainerInstance createContainerInstance) { _getTask = getTask; _addTask = addTask; _handleAzureBatch = handleAzureBatch; _createContainerInstance = createContainerInstance; }
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)); }
public TaskController(IGetTask exercise, IChecksAnswer check) { this.exercise = exercise; this.checks = check; }