Class ContentFinderByIdPath
Provides an implementation of IContentFinder that handles page identifiers.
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class ContentFinderByIdPath : ContentFinderByIdentifierPathBase, IContentFinder
Remarks
Handles /1234
where 1234
is the identified of a document.
Constructors
View SourceContentFinderByIdPath(IOptionsMonitor<WebRoutingSettings>, ILogger<ContentFinderByIdPath>, IRequestAccessor, IUmbracoContextAccessor)
Initializes a new instance of the ContentFinderByIdPath class.
Declaration
public ContentFinderByIdPath(IOptionsMonitor<WebRoutingSettings> webRoutingSettings, ILogger<ContentFinderByIdPath> logger, IRequestAccessor requestAccessor, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IOptionsMonitor<WebRoutingSettings> | webRoutingSettings | |
ILogger<ContentFinderByIdPath> | logger | |
IRequestAccessor | requestAccessor | |
IUmbracoContextAccessor | umbracoContextAccessor |
Properties
View SourceFailureLogMessageTemplate
Declaration
protected override string FailureLogMessageTemplate { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceTryFindContent(IPublishedRequestBuilder)
Tries to find and assign an Umbraco document to a PublishedRequest
.
Declaration
public Task<bool> TryFindContent(IPublishedRequestBuilder frequest)
Parameters
Type | Name | Description |
---|---|---|
IPublishedRequestBuilder | frequest | The |
Returns
Type | Description |
---|---|
Task<System.Boolean> | A value indicating whether an Umbraco document was found and assigned. |