Ejemplo n.º 1
0
        public JsonResult RunTask(string taskName)
        {
            var operation = _operationContainer.RunNewOperation(taskName, TaskDummy.DummyAction);

            return(Json(new
            {
                taskId = operation.Id
            }));
        }
Ejemplo n.º 2
0
        public string RunNewOperation()
        {
            var operation = _operationContainer.RunNewOperation("Custom task", TaskDummy.DummyAction);

            return("task result");
        }