コード例 #1
0
        /// <summary>
        /// Record the message as part of a child of this group.
        /// </summary>
        /// <param name="message"></param>
        internal void AddChildMessage(LogMessage message)
        {
            //we need to count this message and roll up this count to our parents.
            MessageCountWithChildren++;
            MaxSeverityWithChildren = (LogMessageSeverity)Math.Min((int)message.Severity, (int)MaxSeverityWithChildren);

            if (Parent != null)
            {
                Parent.AddChildMessage(message);
            }
        }