Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 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);
         }
     }));
 }
Ejemplo n.º 3
0
 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);
         }
     }));
 }