public JsonResult Update(int id) { var task = new ProjectModuleTask <SerpModuleData>(_provider, id, User.GetUserId()); _runtimeQueue.Add(task); return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id]))); }
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]))); }
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]))); }
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]))); }
public JsonResult GetModuleState(int id) { return(new JsonResult(ModuleRuntimeDetails.CreateModuleExecStateDetails(_runtimeQueue[id]))); }