Exemplo n.º 1
0
        /// <summary>
        /// Adds items to the provided site map.
        /// Note: The items are retrieved by the GetSiteMapItems() function.
        /// </summary>
        /// <param name="siteMap"></param>
        public virtual void Add(ISiteMap siteMap)
        {
            using (LogGroup logGroup = LogGroup.StartDebug("Adding items to the provided site map."))
            {
                foreach (ISiteMapNode item in GetSiteMapItems())
                {
                    LogWriter.Debug("Action: " + item.Action + " | Type name: " + item.TypeName + " | Category: " + item.Category + " | Title: " + item.Title);

                    siteMap.Add(item);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Adds items to the provided site map.
        /// Note: The items are retrieved by the GetSiteMapItems() function.
        /// </summary>
        /// <param name="siteMap"></param>
        public virtual void Add(ISiteMap siteMap)
        {
            using (LogGroup logGroup = LogGroup.StartDebug("Adding items to the provided site map."))
            {
                foreach (ISiteMapNode item in GetSiteMapItems())
                {
                    LogWriter.Debug("Action: " + item.Action + " | Type name: " + item.TypeName + " | Category: " + item.Category + " | Title: " + item.Title);

                    siteMap.Add(item);
                }
            }
        }