This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

PageResolver Pennington.Content

Default IPageResolver over the registered content services, parser, and renderer.

Constructors

PageResolver

#
public PageResolver(IEnumerable<IContentService> services, IContentRenderer renderer, IContentParser parser = null)

Creates the resolver from the registered content services and renderer. The parser is optional: a bare host that registers no markdown source has no IContentParser, so ResolveAsync resolves nothing.

Parameters

services IEnumerable<IContentService>
renderer IContentRenderer
parser IContentParser

Methods

ResolveAsync

#
public Task<RenderedItem> ResolveAsync(UrlPath requested)

Returns the rendered page whose canonical route matches requested, or null when nothing matches or the match fails to parse or render.

Parameters

requested UrlPath

Returns

Task<RenderedItem>

Pennington.Content.PageResolver

namespace Pennington.Content;

/// Default IPageResolver over the registered content services, parser, and renderer.
public class PageResolver
{
    /// Creates the resolver from the registered content services and renderer. The parser is optional: a bare host that registers no markdown source has no IContentParser, so ResolveAsync resolves nothing.
    
public PageResolver(IEnumerable<IContentService> services, IContentRenderer renderer, IContentParser parser = null)
; /// Returns the rendered page whose canonical route matches requested, or null when nothing matches or the match fails to parse or render.
public Task<RenderedItem> ResolveAsync(UrlPath requested)
; }