Class ContentFinderByIdPath
Provides an implementation of IContent
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class ContentFinderByIdPath : 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 Content
Declaration
public ContentFinderByIdPath(IOptionsMonitor<WebRoutingSettings> webRoutingSettings, ILogger<ContentFinderByIdPath> logger, IRequestAccessor requestAccessor, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
| Type | Name | Description |
|---|---|---|
| IOptions |
webRoutingSettings | |
| ILogger<Content |
logger | |
| IRequest |
requestAccessor | |
| IUmbraco |
umbracoContextAccessor |
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. |