/// <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;
            }
        }
Ejemplo n.º 2
0
		/// <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;
			}
		}