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
contentServicesIEnumerable<IContentService>artifactServicesIEnumerable<IArtifactContentService>endpointDataSourceEndpointDataSourceoutputOptionsOutputOptionsenvironmentIWebHostEnvironment
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
changeFileChangeNotification
Returns
FileWatchResponsePennington.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)
;
}