示例#1
0
 /// <summary>
 /// Reset the repositories configuration to a default state
 /// </summary>
 /// <remarks>
 /// <para>
 /// Reset all values contained in this instance to their
 /// default state.
 /// </para>
 /// <para>
 /// Existing loggers are not removed. They are just reset.
 /// </para>
 /// <para>
 /// This method should be used sparingly and with care as it will
 /// block all logging until it is completed.
 /// </para>
 /// </remarks>
 public virtual void ResetConfiguration()
 {
     m_rendererMap.Clear();
     m_levelMap.Clear();
     m_configurationMessages = EmptyCollection.Instance;
     AddBuiltinLevels();
     Configured = false;
     OnConfigurationReset(null);
 }
        /// <summary>
        /// Reset the repositories configuration to a default state
        /// </summary>
        /// <remarks>
        /// <para>
        /// Reset all values contained in this instance to their
        /// default state.
        /// </para>
        /// <para>
        /// Existing loggers are not removed. They are just reset.
        /// </para>
        /// <para>
        /// This method should be used sparingly and with care as it will
        /// block all logging until it is completed.
        /// </para>
        /// </remarks>
        public virtual void ResetConfiguration()
        {
            // Clear internal data structures
            m_rendererMap.Clear();
            m_levelMap.Clear();

            // Add the predefined levels to the map
            AddBuiltinLevels();

            Configured = false;

            // Notify listeners
            OnConfigurationReset(null);
        }
        /// <summary>
        /// Reset the repositories configuration to a default state
        /// </summary>
        /// <remarks>
        /// <para>
        /// Reset all values contained in this instance to their
        /// default state.
        /// </para>
        /// <para>
        /// Existing loggers are not removed. They are just reset.
        /// </para>
        /// <para>
        /// This method should be used sparingly and with care as it will
        /// block all logging until it is completed.
        /// </para>
        /// </remarks>
        virtual public void ResetConfiguration()
        {
            // Clear internal data structures
            m_rendererMap.Clear();
            m_levelMap.Clear();
            m_configurationMessages = EmptyCollection.Instance;

            // Add the predefined levels to the map
            // 将预定义的级别添加到映射中
            AddBuiltinLevels();

            Configured = false;

            // Notify listeners
            OnConfigurationReset(null);
        }