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

AuditRunner Pennington.Generation

Hosted service that runs every registered IBuildAuditor at startup and again whenever IFileWatcher reports a content change. Writes the aggregated diagnostics into the shared AuditCache. In dev mode, emits a one-line summary via ILogger after each run.

Constructors

AuditRunner

#
public AuditRunner(IServiceProvider services, AuditCache cache, IFileWatcher fileWatcher, LocalizationOptions localization, IHostApplicationLifetime lifetime, ILogger<AuditRunner> logger)

Wires the runner to its dependencies.

Parameters

services IServiceProvider
cache AuditCache
fileWatcher IFileWatcher
localization LocalizationOptions
lifetime IHostApplicationLifetime
logger ILogger<AuditRunner>

Methods

StartAsync

#
public Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

StopAsync

#
public Task StopAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

Pennington.Generation.AuditRunner

namespace Pennington.Generation;

/// Hosted service that runs every registered IBuildAuditor at startup and again whenever IFileWatcher reports a content change. Writes the aggregated diagnostics into the shared AuditCache. In dev mode, emits a one-line summary via ILogger after each run.
public class AuditRunner
{
    /// Wires the runner to its dependencies.
    
public AuditRunner(IServiceProvider services, AuditCache cache, IFileWatcher fileWatcher, LocalizationOptions localization, IHostApplicationLifetime lifetime, ILogger<AuditRunner> logger)
;
public Task StartAsync(CancellationToken cancellationToken)
;
public Task StopAsync(CancellationToken cancellationToken)
; }