Class ContentFinderByConfigured404
Provides an implementation of IContent
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ContentFinderByConfigured404 : IContentLastChanceFinder, IContentFinder
Constructors
View SourceContentFinderByConfigured404(ILogger<ContentFinderByConfigured404>, IEntityService, IOptionsMonitor<ContentSettings>, IExamineManager, IVariationContextAccessor, IUmbracoContextAccessor)
Initializes a new instance of the Content
Declaration
public ContentFinderByConfigured404(ILogger<ContentFinderByConfigured404> logger, IEntityService entityService, IOptionsMonitor<ContentSettings> contentSettings, IExamineManager examineManager, IVariationContextAccessor variationContextAccessor, IUmbracoContextAccessor umbracoContextAccessor)
Parameters
Type | Name | Description |
---|---|---|
ILogger<Content |
logger | |
IEntity |
entityService | |
IOptions |
contentSettings | |
IExamine |
examineManager | |
IVariation |
variationContextAccessor | |
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. |