C# Класс 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
Наследование: ISiteMapNodeService
Показать файл Открыть проект

Открытые методы

Метод Описание
GetSiteMapNodes ( CancellationToken cancellationToken = default(CancellationToken) ) : Task>
NavigationTreeSiteMapNodeService ( NavigationTreeBuilderService siteMapTreeBuilder, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccesor, IHttpContextAccessor contextAccessor, ILogger logger ) : cloudscribe.Web.Navigation

Приватные методы

Метод Описание
ResolveUrl ( NavigationNode node, IUrlHelper urlHelper ) : string

Описание методов

GetSiteMapNodes() публичный Метод

public GetSiteMapNodes ( CancellationToken cancellationToken = default(CancellationToken) ) : Task>
cancellationToken System.Threading.CancellationToken
Результат Task>

NavigationTreeSiteMapNodeService() публичный Метод

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
Результат cloudscribe.Web.Navigation