Пример #1
0
        public int UpdateParameterValues(string configAppID, string configAppType, string configCluster, string configStation, string[] uploadValues)
        {
            KeyValue[] options       = new KeyValue[] { };
            KeyValue[] configContext = new KeyValue[] { new KeyValue("CONFIG_APPID", configAppID), new KeyValue("CONFIG_APPTYPE", configAppType), new KeyValue("CONFIG_CLUSTER", configCluster), new KeyValue("CONFIG_STATION", configStation) };
            string[]   uploadKeys    = new string[] { "CONFIG_VALUE", "PARAMETER_NAME" };
            string[]   resultKeys    = new string[] { "CONFIG_VALUE", "ERROR_CODE", "PARAMETER_NAME" };
            string[]   resultValues  = new string[] { };
            int        errorCode     = imsapi.configUpdateValues(sessionContext, options, configContext, uploadKeys, uploadValues, resultKeys, out resultValues);

            LogHelper.Info("Api configUpdateValues error" + errorCode);
            return(errorCode);
        }