Class ContentFinderByKeyPath
Provides an implementation of IContentFinder that handles page key identifiers.
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 ContentFinderByKeyPath class.
Declaration
public ContentFinderByKeyPath(IOptionsMonitor<WebRoutingSettings> webRoutingSettings, ILogger<ContentFinderByKeyPath> logger, IRequestAccessor requestAccessor, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptionsMonitor<WebRoutingSettings> | webRoutingSettings | |
| ILogger<ContentFinderByKeyPath> | 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. |