public bool TryGetAllApplicationSettings(out Dictionary <string, string> values) { var command = new GetApplicationSettingsCommand(); var result = SyncExecuteCommand(command) as DictionaryResult; // Is this the right thing? Or should it be an empty dictionary values = null; if (result != null) { values = result.Results; Console.WriteLine("Retrieved app settings:"); foreach (var pair in result.Results) { Console.WriteLine("{0} : {1}", pair.Key, pair.Value); } } return(result != null); }
public bool TryGetAllApplicationSettings(out Dictionary<string, string> values) { var command = new GetApplicationSettingsCommand(); var result = SyncExecuteCommand(command) as DictionaryResult; // Is this the right thing? Or should it be an empty dictionary values = null; if (result != null) { values = result.Results; Console.WriteLine("Retrieved app settings:"); foreach (var pair in result.Results) { Console.WriteLine("{0} : {1}", pair.Key, pair.Value); } } return result != null; }