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
servicesIEnumerable<IContentService>rendererIContentRendererparserIContentParser
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
requestedUrlPath
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)
;
}