/// <summary> /// Executes the setting method async. /// </summary> /// <param name="method">The method.</param> /// <param name="settingStorePartitions">The settingStorePartitions.</param> /// <param name="setting">the setting.</param> /// <returns>Async task.</returns> public Task <SettingCollection> CallSettingMethodAsync(SettingMethods method, SettingStorePartitions settingStorePartitions, Setting setting) { return(this.CallSettingMethodAsync(method, settingStorePartitions, new SettingCollection { setting })); }
/// <summary> /// Executes the setting method async. /// </summary> /// <param name="method">The method.</param> /// <param name="settingStorePartitions">The settingStorePartitions.</param> /// <param name="settingCollection">collection of settings.</param> /// <returns>Async task.</returns> public Task <SettingCollection> CallSettingMethodAsync(SettingMethods method, SettingStorePartitions settingStorePartitions, SettingCollection settingCollection) { var requestUri = this.CreateRequestUri(RelativePaths.Settings); var batch = new SettingBatch { SettingStorePartitions = settingStorePartitions, SettingCollection = settingCollection, Method = method.ToString() }; return(this.SendAsync <SettingBatch, SettingCollection>(requestUri, HttpMethod.Post, batch)); }