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
registryContentFormatRegistryservicesIServiceProvider
Methods
RenderAsync
#public Task<ContentItem> RenderAsync(ParsedItem item)
Render a parsed item. Returns RenderedItem on success, FailedItem on failure.
Parameters
itemParsedItem
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)
;
}