예제 #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 HttpProviderTask(_provider, id, User.GetUserId(), new HttpProviderRuntimeConfig()
            {
                Query = request
            });

            _runtimeQueue.Add(task);
            return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
        }
예제 #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])));
        }
예제 #5
0
 public JsonResult GetModuleState(int id)
 {
     return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id])));
 }