Class IdentityHealthContributor
Per-module health probe for redb.Identity. Surfaces the module under
module:identity in the aggregated /api/health/{startup,live,ready}
endpoints exposed by redb.Tsak.
Probes (worst status wins):
db — returns a non-empty
string. Failure → .signing-keys — at least one signing credential is registered with the
OpenIddict server. Empty → (token issuance
would fail).data-protection — the active key-ring exposes at least one key.
Empty → (cookie / state protection still works
on the in-memory bootstrap key, but nothing is persisted yet).
Registered as a singleton in AddRedbIdentityServer. Resolves
through a transient scope to honour its scoped lifetime.
All exceptions are caught locally so a misbehaving probe cannot crash the health
endpoint (Tsak additionally guards via fallback).
public sealed class IdentityHealthContributor : IModuleHealthContributor
Inheritance
Implements
Properties
ModuleName
Stable, short name used as the entry key in the health evaluation bag (e.g. "orders" →
public string ModuleName { get; }
Methods
CheckHealthAsync(CancellationToken)
Returns the current health status of the module. Implementations should be fast (single-digit
public Task<HealthStatus> CheckHealthAsync(CancellationToken ct)