Package reference page maintained from the source documentation in src/HealthChecks.SurrealDb.

SurrealDB Health Check

This health check verifies the ability to communicate with SurrealDb. It uses the provided ISurrealDbClient.

Defaults

By default, the ISurrealDbClient instance is resolved from service provider.

void Configure(IHealthChecksBuilder builder)
{
    builder.Services.AddSurreal("Server=http://localhost:8000;Namespace=test;Database=test");
    builder.AddHealthChecks().AddSurreal();
}