Class ContentFinderByUrl
Provides an implementation of IContentFinder that handles page nice URLs.
Inheritance
System.Object
Namespace: Umbraco.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public class ContentFinderByUrl : IContentFinder
Remarks
Handles /foo/bar
where /foo/bar
is the nice URL of a document.
Constructors
View SourceContentFinderByUrl(ILogger)
Declaration
public ContentFinderByUrl(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger |
Properties
View SourceLogger
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Methods
View SourceFindContent(PublishedRequest, String)
Tries to find an Umbraco document for a PublishedRequest
and a route.
Declaration
protected IPublishedContent FindContent(PublishedRequest docreq, string route)
Parameters
Type | Name | Description |
---|---|---|
PublishedRequest | docreq | The document request. |
System.String | route | The route. |
Returns
Type | Description |
---|---|
IPublishedContent | The document node, or null. |
TryFindContent(PublishedRequest)
Tries to find and assign an Umbraco document to a PublishedRequest
.
Declaration
public virtual bool TryFindContent(PublishedRequest frequest)
Parameters
Type | Name | Description |
---|---|---|
PublishedRequest | frequest | The |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether an Umbraco document was found and assigned. |