Пример #1
0
        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)
            };
        }
Пример #2
0
        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)
            });
        }