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
GetRenderedHtmlAsyncFunc<ContentRoute, CancellationToken, Task<string>>- Fetches the rendered HTML for a
Pagesroute through the live application pipeline. Returnsnullwhen the route does not resolve (404) so the caller can filter rather than handle exceptions. LocalizationLocalizationOptions- Configured locales and the default-locale code.
PagesImmutableList<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
PagesImmutableList<ContentRoute>- Every generated HTML route, from full content discovery rather than the navigation TOC.
LocalizationLocalizationOptions- Configured locales and the default-locale code.
GetRenderedHtmlAsyncFunc<ContentRoute, CancellationToken, Task<string>>- Fetches the rendered HTML for a
Pagesroute through the live application pipeline. Returnsnullwhen 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)
;
}