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
servicesIServiceProvidercacheAuditCachefileWatcherIFileWatcherlocalizationLocalizationOptionslifetimeIHostApplicationLifetimeloggerILogger<AuditRunner>
Methods
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)
;
}