Table of Contents

Class SessionStoreHealthCheck

Namespace
JD.AI.Telemetry.HealthChecks
Assembly
JD.AI.Telemetry.dll

Health check that verifies the SQLite session store is accessible. Reports Unhealthy when the database cannot be opened or queried, since a broken session store prevents conversation persistence.

public sealed class SessionStoreHealthCheck : IHealthCheck
Inheritance
SessionStoreHealthCheck
Implements
Inherited Members

Constructors

SessionStoreHealthCheck(string)

public SessionStoreHealthCheck(string dbPath)

Parameters

dbPath string

Methods

CheckHealthAsync(HealthCheckContext, CancellationToken)

Runs the health check, returning the status of the component being checked.

public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)

Parameters

context HealthCheckContext

A context object associated with the current execution.

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the health check.

Returns

Task<HealthCheckResult>

A Task<TResult> that completes when the health check has finished, yielding the status of the component being checked.