Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentFinderByIdPath

    Provides an implementation of IContentFinder that handles page identifiers.

    Inheritance
    System.Object
    ContentFinderByIdentifierPathBase
    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 Source

    ContentFinderByIdPath(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 Source

    FailureLogMessageTemplate

    Declaration
    protected override string FailureLogMessageTemplate { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    TryFindContent(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 PublishedRequest.

    Returns
    Type Description
    Task<System.Boolean>

    A value indicating whether an Umbraco document was found and assigned.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentFinderByIdPath(IOptionsMonitor<WebRoutingSettings>, ILogger<ContentFinderByIdPath>, IRequestAccessor, IUmbracoContextAccessor)
    • Properties
      • FailureLogMessageTemplate
    • Methods
      • TryFindContent(IPublishedRequestBuilder)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX