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; } } }
//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; } } }