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

DispatchingContentRenderer Pennington.Pipeline

The single IContentRenderer the pipeline resolves: routes each parsed item to the renderer registered for its Format (see ContentFormatRegistry).

Constructors

DispatchingContentRenderer

#
public DispatchingContentRenderer(ContentFormatRegistry registry, IServiceProvider services)

Creates the dispatcher from the format registry and the service provider it resolves renderers from.

Parameters

registry ContentFormatRegistry
services IServiceProvider

Methods

RenderAsync

#
public Task<ContentItem> RenderAsync(ParsedItem item)

Render a parsed item. Returns RenderedItem on success, FailedItem on failure.

Parameters

item ParsedItem

Returns

Task<ContentItem>

Pennington.Pipeline.DispatchingContentRenderer

namespace Pennington.Pipeline;

/// The single IContentRenderer the pipeline resolves: routes each parsed item to the renderer registered for its Format (see ContentFormatRegistry).
public class DispatchingContentRenderer
{
    /// Creates the dispatcher from the format registry and the service provider it resolves renderers from.
    
public DispatchingContentRenderer(ContentFormatRegistry registry, IServiceProvider services)
; /// Render a parsed item. Returns RenderedItem on success, FailedItem on failure.
public Task<ContentItem> RenderAsync(ParsedItem item)
; }