Ejemplo n.º 1
0
        public JsonResult Update(int id)
        {
            var task = new ProjectModuleTask <SerpModuleData>(_provider, id, User.GetUserId());

            _runtimeQueue.Add(task);
            return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
        }
Ejemplo n.º 2
0
        public JsonResult Update(int id, string request)
        {
            _runtimeQueue.EraseState(id);

            var task = new ProjectModuleTask <string, List <SerpWebPage> >(_provider, id, User.GetUserId(), request);

            _runtimeQueue.Add(task);
            return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
        }
Ejemplo n.º 3
0
        public JsonResult Update(int id, string request)
        {
            _runtimeQueue.EraseState(id);

            var task = new HttpProviderTask(_provider, id, User.GetUserId(), new HttpProviderRuntimeConfig()
            {
                Query = request
            });

            _runtimeQueue.Add(task);
            return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
        }
Ejemplo n.º 4
0
        public JsonResult Update(int id, string request)
        {
            _runtimeQueue.EraseState(id);

            var task = new ProjectModuleTask <NotifMessage, NotifResult>(_provider, id, User.GetUserId(), new NotifMessage()
            {
                Message = request
            });

            _runtimeQueue.Add(task);
            return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
        }