예제 #1
0
        /// <summary>
        /// Save the management pack to the active connection.
        /// </summary>
        private void SaveManagementPack()
        {
            UpLevelVersion();

            try
            {
                configurationOverridePack.Verify();
                configurationOverridePack.AcceptChanges();
                Log.WriteTrace(
                    EventType.ExternalDependency,
                    "Successfully saved the updated management pack",
                    configurationOverridePack.Version.ToString());
            }
            catch (Exception ex)
            {
                Log.WriteError(
                    EventType.ExternalDependency,
                    "Unable to save the updated management pack",
                    ex.Message);
                throw;
            }
        }