Class ContentFinderByKeyPath
Provides an implementation of IContent
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class ContentFinderByKeyPath : ContentFinderByIdentifierPathBase, IContentFinder
Remarks
Handles /e7b65017-c6b3-4c11-b7c7-7ea1d0404c9a
where e7b65017-c6b3-4c11-b7c7-7ea1d0404c9a
is the key of a document.
Constructors
View SourceContentFinderByKeyPath(IOptionsMonitor<WebRoutingSettings>, ILogger<ContentFinderByKeyPath>, IRequestAccessor, IUmbracoContextAccessor)
Initializes a new instance of the Content
Declaration
public ContentFinderByKeyPath(IOptionsMonitor<WebRoutingSettings> webRoutingSettings, ILogger<ContentFinderByKeyPath> logger, IRequestAccessor requestAccessor, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
IOptions |
webRoutingSettings | |
ILogger<Content |
logger | |
IRequest |
requestAccessor | |
IUmbraco |
umbracoContextAccessor |
Properties
View SourceFailureLogMessageTemplate
Declaration
protected override string FailureLogMessageTemplate { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|---|
IPublished |
frequest | The |
Returns
Type | Description |
---|---|
Task<System. |
A value indicating whether an Umbraco document was found and assigned. |