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

    GetAllAsync(IContent, string?)

    Gets the published urls for a content item, optionally restricted to a single culture.

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

    The content to get urls for.

    string culture

    The culture to restrict variant content urls to, or null to return urls for all cultures. Ignored for invariant content, which always returns all of its domain urls.

    Returns
    Type Description
    Task<ISet<UrlInfo>>

    Set of published url infos.

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