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

RenderedAuditContext Pennington.Generation

Inputs handed to AuditAsync: the routes to fetch plus a delegate that returns each route's post-pipeline rendered HTML. Unlike BuildAuditContext, the page set is the full generated route set — every discovered HTML page — so rendered checks cover routes that never appear in navigation (the homepage and other Razor-only pages).

Properties

GetRenderedHtmlAsync Func<ContentRoute, CancellationToken, Task<string>>
Fetches the rendered HTML for a Pages route through the live application pipeline. Returns null when the route does not resolve (404) so the caller can filter rather than handle exceptions.
Localization LocalizationOptions
Configured locales and the default-locale code.
Pages ImmutableList<ContentRoute>
Every generated HTML route, from full content discovery rather than the navigation TOC.

Constructors

RenderedAuditContext

#
public RenderedAuditContext(ImmutableList<ContentRoute> Pages, LocalizationOptions Localization, Func<ContentRoute, CancellationToken, Task<string>> GetRenderedHtmlAsync)

Inputs handed to AuditAsync: the routes to fetch plus a delegate that returns each route's post-pipeline rendered HTML. Unlike BuildAuditContext, the page set is the full generated route set — every discovered HTML page — so rendered checks cover routes that never appear in navigation (the homepage and other Razor-only pages).

Parameters

Pages ImmutableList<ContentRoute>
Every generated HTML route, from full content discovery rather than the navigation TOC.
Localization LocalizationOptions
Configured locales and the default-locale code.
GetRenderedHtmlAsync Func<ContentRoute, CancellationToken, Task<string>>
Fetches the rendered HTML for a Pages route through the live application pipeline. Returns null when the route does not resolve (404) so the caller can filter rather than handle exceptions.

Pennington.Generation.RenderedAuditContext

namespace Pennington.Generation;

/// Inputs handed to AuditAsync: the routes to fetch plus a delegate that returns each route's post-pipeline rendered HTML. Unlike BuildAuditContext, the page set is the full generated route set — every discovered HTML page — so rendered checks cover routes that never appear in navigation (the homepage and other Razor-only pages).
public record RenderedAuditContext
{
    /// Fetches the rendered HTML for a Pages route through the live application pipeline. Returns null when the route does not resolve (404) so the caller can filter rather than handle exceptions.
    
public Func<ContentRoute, CancellationToken, Task<string>> GetRenderedHtmlAsync { get; set; }
/// Configured locales and the default-locale code.
public LocalizationOptions Localization { get; set; }
/// Every generated HTML route, from full content discovery rather than the navigation TOC.
public ImmutableList<ContentRoute> Pages { get; set; }
/// Inputs handed to AuditAsync: the routes to fetch plus a delegate that returns each route's post-pipeline rendered HTML. Unlike BuildAuditContext, the page set is the full generated route set — every discovered HTML page — so rendered checks cover routes that never appear in navigation (the homepage and other Razor-only pages).
public RenderedAuditContext(ImmutableList<ContentRoute> Pages, LocalizationOptions Localization, Func<ContentRoute, CancellationToken, Task<string>> GetRenderedHtmlAsync)
; }