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 SourcePublishedUrlInfoProvider(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 SourceGetAllAsync(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. |