/// <summary> /// Asynchronously updates an existing configuration setting. /// </summary> /// <param name="fileName"> /// Name of a configuration file. /// </param> /// <param name="stanzaName"> /// Name of a configuration stanza. /// </param> /// <param name="keyName"> /// Name of the configuration setting to update. /// </param> /// <param name="value"> /// A new <see cref="string"/> value for the configuration setting /// identified by <see cref="fileName"/>, <see cref="stanzaName"/>, /// and <see cref="keyName"/>. /// <remarks> /// This method uses the <a href="http://goo.gl/sSzcMy">POST /// properties/{file_name}/{stanza_name}/{key_Name}</a> endpoint to /// update the configuration setting identified by <see cref= /// "fileName"/>, <see cref="stanzaName"/>, and <see cref="keyName"/>. /// </remarks> public async Task UpdateConfigurationSettingAsync(string fileName, string stanzaName, string keyName, string value) { ConfigurationSetting setting = new ConfigurationSetting(this.Context, this.Namespace, fileName, stanzaName, keyName); await setting.UpdateAsync(value); }
/// <summary> /// Asynchronously retrieves a single configuration setting. /// </summary> /// <returns> /// An object representing the configuration setting. /// </returns> /// <remarks> /// This method uses the <a href="http://goo.gl/1jeyog">GET /// properties/{file_name}/{stanza_name}/{key_name}</a> endpoint/> to /// construct the <see cref="ConfigurationSetting"/> it returns. /// </remarks> public async Task<ConfigurationSetting> GetConfigurationSettingAsync(string fileName, string stanzaName, string keyName) { var entity = new ConfigurationSetting(this.Context, this.Namespace, fileName, stanzaName, keyName); await entity.GetAsync(); return entity; }