protected override void DoImpl() { AppSettings[Key] = Value; AppSettings.Save(); var settings = new Dictionary <string, string>(); settings.Add(Key, Value); AutomationClient.RaiseApplicationSettingsChanged(settings); SendSuccessResult(); }
protected override void DoImpl() { try { // Remove any keys that would be duplicates before starting. foreach (var key in this.Settings.Keys.Where(key => AppSettings.Contains(key))) { AppSettings.Remove(key); } foreach (var pair in this.Settings) { AppSettings.Add(pair.Key, pair.Value); } AppSettings.Save(); AutomationClient.RaiseApplicationSettingsChanged(Settings); SendSuccessResult(); } catch (Exception ex) { SendExceptionFailedResult(ex); } }