Sdl.Web.Tridion/Providers/Navigation/CILImpl/DynamicNavigationProvider.cs
/// <summary>
/// Gets the Navigation Model (Sitemap) for a given Localization.
/// </summary>
/// <param name="localization">The Localization.</param>
/// <returns>The Navigation Model (Sitemap root Item).</returns>
Gets the Navigation Model (Sitemap) for a given Localization.
Gets the Navigation Model ( Sitemap ) for a given Localization .
public virtual SitemapItem GetNavigationModel(ILocalization localization)
        {
            using (new Tracer(localization))
            {
                string navTaxonomyUri = GetNavigationTaxonomyUri(localization);
                if (string.IsNullOrEmpty(navTaxonomyUri))
                {
                    return _fallbackNavigationProvider.GetNavigationModel(localization);
                }
                return SiteConfiguration.CacheProvider.GetOrAdd(
                    localization.Id, 
                    CacheRegions.DynamicNavigation,
                    () => BuildNavigationModel(navTaxonomyUri, localization),
                    new [] { navTaxonomyUri } 
                    );
            }
        }
public virtual SitemapItem GetNavigationModel ( ILocalization localization ) { using ( new Tracer ( localization ) ) { string navTaxonomyUri = GetNavigationTaxonomyUri ( localization ) ; if ( string . IsNullOrEmpty ( navTaxonomyUri ) ) { return _fallbackNavigationProvider . GetNavigationModel ( localization ) ; } return SiteConfiguration . CacheProvider . GetOrAdd ( localization . Id , CacheRegions . DynamicNavigation , ( ) => BuildNavigationModel ( navTaxonomyUri , localization ) , new [ ] { navTaxonomyUri } ) ; } }
Gets the Navigation Model (Sitemap) for a given Localization.
Gets the Navigation Model ( Sitemap ) for a given Localization .
// No Navigation Taxonomy found in this Localization; fallback to the StaticNavigationProvider. // key // dependency on Taxonomy
The Navigation Model (Sitemap root Item).
The Navigation Model ( Sitemap root Item ) .
localization
ILocalization
None