예제 #1
0
        private static void AddConfigurationData(string sectionName)
        {
            Dictionary <string, string> keyValuePairs = ZohoOAuthUtil.GetConfigFileAsDict(sectionName);

            foreach (KeyValuePair <string, string> configData in keyValuePairs)
            {
                if (OAUTH_CONFIG_KEYS.Contains(configData.Key))
                {
                    ConfigProperties[configData.Key] = configData.Value;
                }
            }
        }
예제 #2
0
        //Adds Configuration key value pairs specified by the argument to configProperties;
        private static void AddConfigurationData(Stream inputStream)
        {
            Dictionary <string, string> keyValuePairs;

            keyValuePairs = ZohoOAuthUtil.GetFileAsDict(inputStream);
            foreach (KeyValuePair <string, string> keyValues in keyValuePairs)
            {
                if (OAUTH_CONFIG_KEYS.Contains(keyValues.Key))
                {
                    ConfigProperties[keyValues.Key] = keyValues.Value;
                }
            }
        }