private JObject ReturnSuccess(JObject data) { var file_path = data[CommonConst.CommonField.FILE_PATH].ToString(); if (CommonUtility.IsServerSidePage(file_path)) { HttpProxy.UnloadAppDomain(); } return(ResponseBuilder.CreateReponse(CommonConst._1_SUCCESS)); }
public JObject Install() { return(_moduleMethodCaller((string moduleName) => { if (_moduleInstaller.Install(moduleName, HttpProxy, true)) { HttpProxy.UnloadAppDomain(); return ResponseBuilder.CreateReponse(CommonConst._1_SUCCESS); } else { Logger.Error(string.Format("Module install error. Module: {0}", moduleName)); return ResponseBuilder.CreateReponse(ModuleInstallerResponseCode._MODULE_NOT_FOUND); } })); }
public JObject GetModuleDetails() { return(_moduleMethodCaller((string moduleName) => { var moduleDetails = _moduleInstaller.GetDetails(moduleName); if (moduleDetails != null) { HttpProxy.UnloadAppDomain(); return ResponseBuilder.CreateReponse(CommonConst._1_SUCCESS, moduleDetails); } else { Logger.Error(string.Format("Module not found : {0}", moduleName)); return ResponseBuilder.CreateReponse(ModuleInstallerResponseCode._MODULE_NOT_FOUND); } })); }