public TaskResponse Post(TaskRequest request, string template = null, string alias = null, string taskType = "task") { CheckMinerOwnerShip(); Type type = this.GetTaskLauncher(taskType); var definition = new RunTaskDefinition(request.Task, template, alias); return new TaskResponse { OutputFilePath = this.LISpMiner.Run(type, definition) }; }
public TaskResponse Post(TaskRequest request, string template = null, string alias = null, string taskType = "task") { CheckMinerOwnerShip(); Type type = this.GetTaskLauncher(taskType); var definition = new RunTaskDefinition(request.Task, template, alias); return(new TaskResponse { OutputFilePath = this.LISpMiner.Run(type, definition) }); }