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

PageLinkVerifier Pennington.Infrastructure

Holds a LinkVerificationService built from the current corpus of known routes and copied assets. File-watched so the known-paths set refreshes when content changes. Lets PageLinkAuditProcessor verify per-page links without running a corpus-wide rendered audit.

Constructors

PageLinkVerifier

#
public PageLinkVerifier(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)

Creates the verifier; the underlying LinkVerificationService is built lazily on first request.

Parameters

contentServices IEnumerable<IContentService>
artifactServices IEnumerable<IArtifactContentService>
endpointDataSource EndpointDataSource
outputOptions OutputOptions
environment IWebHostEnvironment

Methods

GetVerifierAsync

#
public Task<LinkVerificationService> GetVerifierAsync()

Returns the current verifier; rebuilds on first access after a file change.

Returns

Task<LinkVerificationService>

OnFileChanged

#
public FileWatchResponse OnFileChanged(FileChangeNotification change)

Called on the file-watcher thread for every watched change. Must be quick and thread-safe.

Parameters

change FileChangeNotification

Returns

FileWatchResponse

Pennington.Infrastructure.PageLinkVerifier

namespace Pennington.Infrastructure;

/// Holds a LinkVerificationService built from the current corpus of known routes and copied assets. File-watched so the known-paths set refreshes when content changes. Lets PageLinkAuditProcessor verify per-page links without running a corpus-wide rendered audit.
public class PageLinkVerifier
{
    /// Returns the current verifier; rebuilds on first access after a file change.
    
public Task<LinkVerificationService> GetVerifierAsync()
; /// Called on the file-watcher thread for every watched change. Must be quick and thread-safe.
public FileWatchResponse OnFileChanged(FileChangeNotification change)
; /// Creates the verifier; the underlying LinkVerificationService is built lazily on first request.
public PageLinkVerifier(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)
; }