Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedUrlInfoProvider

    Provides the default implementation of IPublishedUrlInfoProvider.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Core.dll
    Syntax
    public class PublishedUrlInfoProvider : IPublishedUrlInfoProvider

    Constructors

    View Source

    PublishedUrlInfoProvider(IPublishedUrlProvider, ILanguageService, IPublishedRouter, IUmbracoContextAccessor, ILocalizedTextService, ILogger<PublishedUrlInfoProvider>, UriUtility, IVariationContextAccessor)

    Initializes a new instance of the PublishedUrlInfoProvider class.

    Declaration
    public PublishedUrlInfoProvider(IPublishedUrlProvider publishedUrlProvider, ILanguageService languageService, IPublishedRouter publishedRouter, IUmbracoContextAccessor umbracoContextAccessor, ILocalizedTextService localizedTextService, ILogger<PublishedUrlInfoProvider> logger, UriUtility uriUtility, IVariationContextAccessor variationContextAccessor)
    Parameters
    Type Name Description
    IPublishedUrlProvider publishedUrlProvider

    The published URL provider.

    ILanguageService languageService

    The language service.

    IPublishedRouter publishedRouter

    The published router.

    IUmbracoContextAccessor umbracoContextAccessor

    The Umbraco context accessor.

    ILocalizedTextService localizedTextService

    The localized text service.

    ILogger<PublishedUrlInfoProvider> logger

    The logger.

    UriUtility uriUtility

    The URI utility.

    IVariationContextAccessor variationContextAccessor

    The variation context accessor.

    Methods

    View Source

    GetAllAsync(IContent)

    Gets all published urls for a content item.

    Declaration
    public Task<ISet<UrlInfo>> GetAllAsync(IContent content)
    Parameters
    Type Name Description
    IContent content

    The content to get urls for.

    Returns
    Type Description
    Task<ISet<UrlInfo>>

    Set of all published url infos.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX