예제 #1
0
        //更新环境变量的值
        public static void updateEnvVariable(GxEnvVarType envVariableName, string value)
        {
            GxEnvVariableData envVariableData = _gxEvnVariableList[envVariableName];

            envVariableData.envVariableValue = value;

            Logger.Info("Env Updated [" + envVariableName + ", " + value + "]");
        }
예제 #2
0
        //根据环境变量ID获取环境变量的值
        public static string getEnv(GxEnvVarType envVariableType)
        {
            GxEnvVariableData envVariableData = _gxEvnVariableList[envVariableType];

            if (envVariableData != null)
            {
                return(envVariableData.envVariableValue);
            }

            return("");
        }