LinkAuditor
Pennington.Generation
IRenderedAuditor that fetches each TOC page through the live pipeline and runs LinkVerificationService over its rendered HTML, surfacing broken internal links in the dev overlay (per page) and the build report.
Properties
Codestring- Stable identifier surfaced on every diagnostic this auditor emits.
Constructors
LinkAuditor
#public LinkAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)
Wires the auditor to the content discovery surface, the artifact tier, the endpoint table, the output options, and the host environment (for wwwroot/RCL assets).
Parameters
contentServicesIEnumerable<IContentService>artifactServicesIEnumerable<IArtifactContentService>endpointDataSourceEndpointDataSourceoutputOptionsOutputOptionsenvironmentIWebHostEnvironment
Methods
AuditAsync
#public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)
Runs the auditor against context and returns its diagnostics.
Parameters
contextRenderedAuditContextcancellationTokenCancellationToken
Returns
Task<IReadOnlyList<BuildDiagnostic>>Pennington.Generation.LinkAuditor
namespace Pennington.Generation;
/// IRenderedAuditor that fetches each TOC page through the live pipeline and runs LinkVerificationService over its rendered HTML, surfacing broken internal links in the dev overlay (per page) and the build report.
public class LinkAuditor
{
/// Runs the auditor against context and returns its diagnostics.
public Task<IReadOnlyList<BuildDiagnostic>> AuditAsync(RenderedAuditContext context, CancellationToken cancellationToken)
;
/// Stable identifier surfaced on every diagnostic this auditor emits.
public string Code { get; }
/// Wires the auditor to the content discovery surface, the artifact tier, the endpoint table, the output options, and the host environment (for wwwroot/RCL assets).
public LinkAuditor(IEnumerable<IContentService> contentServices, IEnumerable<IArtifactContentService> artifactServices, EndpointDataSource endpointDataSource, OutputOptions outputOptions, IWebHostEnvironment environment)
;
}