/// <summary> /// Allows user configuration to be stored. The update action should be used to invoke methods on the /// <see cref="IFolderExplorerUserConfigurationUpdater"/> to set the required user configuration. /// </summary> /// <param name="updateAction"></param> public void UpdateUserConfiguration(UpdateFolderExplorerUserConfigurationAction updateAction) { _userConfig.BeginTransaction(); try { updateAction(_userConfig); _userConfig.CommitTransaction(); } catch { _userConfig.RollbackTransaction(); throw; } }
/// <summary> /// Allows user configuration to be stored. The update action should be used to invoke methods on the /// <see cref="IFolderExplorerUserConfigurationUpdater"/> to set the required user configuration. /// </summary> /// <param name="updateAction"></param> public void UpdateUserConfiguration(UpdateFolderExplorerUserConfigurationAction updateAction) { _userConfig.BeginTransaction(); try { updateAction(_userConfig); _userConfig.CommitTransaction(); } catch { _userConfig.RollbackTransaction(); throw; } }