Table of Contents

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

scopeFactory IServiceScopeFactory
options IOptions<ApplicationAuditReconciliationOptions>
timeProvider TimeProvider

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

context HealthCheckContext

The health check context.

cancellationToken CancellationToken

A token that cancels the check.

Returns

Task<HealthCheckResult>

The audit integrity health result.