예제 #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])));
        }
예제 #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])));
        }
예제 #3
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])));
        }