Class ApplicationAuditIntegrityHealthCheck
- Namespace
- ProjectTemplate.Web.HealthChecks
- Assembly
- ProjectTemplate.Web.dll
Reports audit reconciliation findings, audit delivery state, and whether reconciliation is still running.
public sealed class ApplicationAuditIntegrityHealthCheck : IHealthCheck
- Inheritance
-
ApplicationAuditIntegrityHealthCheck
- Implements
- Inherited Members
Remarks
The check is registered with the Audit tag and exposed through
/health/audit-integrity. It is intentionally excluded from readiness: an integrity finding requires operator review,
and a readiness failure would remove every replica from load balancing at the same moment.
Constructors
ApplicationAuditIntegrityHealthCheck(IServiceScopeFactory, IOptions<ApplicationAuditReconciliationOptions>, TimeProvider)
Reports audit reconciliation findings, audit delivery state, and whether reconciliation is still running.
public ApplicationAuditIntegrityHealthCheck(IServiceScopeFactory scopeFactory, IOptions<ApplicationAuditReconciliationOptions> options, TimeProvider timeProvider)
Parameters
scopeFactoryIServiceScopeFactoryoptionsIOptions<ApplicationAuditReconciliationOptions>timeProviderTimeProvider
Remarks
The check is registered with the Audit tag and exposed through
/health/audit-integrity. It is intentionally excluded from readiness: an integrity finding requires operator review,
and a readiness failure would remove every replica from load balancing at the same moment.
Methods
CheckHealthAsync(HealthCheckContext, CancellationToken)
Evaluates audit reconciliation findings, delivery health, and reconciliation freshness.
public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
Parameters
contextHealthCheckContextThe health check context.
cancellationTokenCancellationTokenA token that cancels the check.
Returns
- Task<HealthCheckResult>
The audit integrity health result.