Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentFinderByConfigured404

    Provides an implementation of IContentFinder that runs the legacy 404 logic.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Routing
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ContentFinderByConfigured404 : IContentLastChanceFinder, IContentFinder

    Constructors

    View Source

    ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404>, IEntityService, IOptionsMonitor<ContentSettings>, IExamineManager, IVariationContextAccessor, IUmbracoContextAccessor)

    Declaration
    [Obsolete("Please use the constructor taking all parameters. Scheduled for removal in Umbraco 18.")]
    public ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404> logger, IEntityService entityService, IOptionsMonitor<ContentSettings> contentSettings, IExamineManager examineManager, IVariationContextAccessor variationContextAccessor, IUmbracoContextAccessor umbracoContextAccessor)
    Parameters
    Type Name Description
    ILogger<ContentFinderByConfigured404> logger
    IEntityService entityService
    IOptionsMonitor<ContentSettings> contentSettings
    IExamineManager examineManager
    IVariationContextAccessor variationContextAccessor
    IUmbracoContextAccessor umbracoContextAccessor
    View Source

    ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404>, IEntityService, IOptionsMonitor<ContentSettings>, IExamineManager, IVariationContextAccessor, IUmbracoContextAccessor, IDocumentUrlService, IPublishedContentCache, IDocumentNavigationQueryService)

    Declaration
    [Obsolete("Please use the constructor taking all parameters. Scheduled for removal in Umbraco 19.")]
    public ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404> logger, IEntityService entityService, IOptionsMonitor<ContentSettings> contentSettings, IExamineManager examineManager, IVariationContextAccessor variationContextAccessor, IUmbracoContextAccessor umbracoContextAccessor, IDocumentUrlService documentUrlService, IPublishedContentCache publishedContentCache, IDocumentNavigationQueryService documentNavigationQueryService)
    Parameters
    Type Name Description
    ILogger<ContentFinderByConfigured404> logger
    IEntityService entityService
    IOptionsMonitor<ContentSettings> contentSettings
    IExamineManager examineManager
    IVariationContextAccessor variationContextAccessor
    IUmbracoContextAccessor umbracoContextAccessor
    IDocumentUrlService documentUrlService
    IPublishedContentCache publishedContentCache
    IDocumentNavigationQueryService documentNavigationQueryService
    View Source

    ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404>, IEntityService, IOptionsMonitor<ContentSettings>, IExamineManager, IVariationContextAccessor, IUmbracoContextAccessor, IDocumentUrlService, IPublishedContentCache, IDocumentNavigationQueryService, IMediaNavigationQueryService)

    Initializes a new instance of the ContentFinderByConfigured404 class.

    Declaration
    public ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404> logger, IEntityService entityService, IOptionsMonitor<ContentSettings> contentSettings, IExamineManager examineManager, IVariationContextAccessor variationContextAccessor, IUmbracoContextAccessor umbracoContextAccessor, IDocumentUrlService documentUrlService, IPublishedContentCache publishedContentCache, IDocumentNavigationQueryService documentNavigationQueryService, IMediaNavigationQueryService mediaNavigationQueryService)
    Parameters
    Type Name Description
    ILogger<ContentFinderByConfigured404> logger

    The logger used for diagnostic and error logging.

    IEntityService entityService

    Service for accessing Umbraco entities.

    IOptionsMonitor<ContentSettings> contentSettings

    The monitor providing current content settings options.

    IExamineManager examineManager

    The manager for Examine search indexes.

    IVariationContextAccessor variationContextAccessor

    Accessor for the current variation context (e.g., culture/language).

    IUmbracoContextAccessor umbracoContextAccessor

    Accessor for the current Umbraco context.

    IDocumentUrlService documentUrlService

    Service for resolving document URLs.

    IPublishedContentCache publishedContentCache

    Cache for published Umbraco content.

    IDocumentNavigationQueryService documentNavigationQueryService

    Service for querying document navigation structure.

    IMediaNavigationQueryService mediaNavigationQueryService

    Service for querying media navigation structure.

    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<bool>

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

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX