C# Class cloudscribe.Web.SiteMap.NavigationTreeSiteMapNodeService

for those of using cloudscribe.Web.Navigation, we already have this tree object that typically contains most or all the urls that we want to have indexed by search engines so rather than building a new list it is more efficient to dual purpose this same data in order to build our sitemap. That is what this class is for. blog items are typically not in a main navigation menu though so we typically also need a separate ISiteMapNodeService for blog posts
Inheritance: ISiteMapNodeService
ファイルを表示 Open project: joeaudette/cloudscribe.Web.Navigation

Public Methods

Method Description
GetSiteMapNodes ( CancellationToken cancellationToken = default(CancellationToken) ) : Task>
NavigationTreeSiteMapNodeService ( NavigationTreeBuilderService siteMapTreeBuilder, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor, ILogger logger ) : cloudscribe.Web.Navigation

Private Methods

Method Description
ResolveUrl ( NavigationNode node, IUrlHelper urlHelper ) : string

Method Details

GetSiteMapNodes() public method

public GetSiteMapNodes ( CancellationToken cancellationToken = default(CancellationToken) ) : Task>
cancellationToken System.Threading.CancellationToken
return Task>

NavigationTreeSiteMapNodeService() public method

public NavigationTreeSiteMapNodeService ( NavigationTreeBuilderService siteMapTreeBuilder, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor, ILogger logger ) : cloudscribe.Web.Navigation
siteMapTreeBuilder cloudscribe.Web.Navigation.NavigationTreeBuilderService
urlHelperFactory IUrlHelperFactory
actionContextAccesor IActionContextAccessor
contextAccessor IHttpContextAccessor
logger ILogger
return cloudscribe.Web.Navigation