Path: redb-tsak/src/redb.Tsak.Core/Monitoring/HotReloadHealthContributor.cs Snapshot: redb-tsak, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-tsak Page: https://redbase.app/src/dev-2026-12-06/redb-tsak/src/redb.Tsak.Core/Monitoring/HotReloadHealthContributor.cs ---- using redb.Tsak.Contracts; using redb.Tsak.Core.Contracts; using redb.Tsak.Core.Modules; namespace redb.Tsak.Core.Monitoring; /// /// Reports the node as while more module load contexts stay in memory after Tsak let /// them go than allows: the node keeps working, but only a /// restart gives that memory back. Reads the count the runtime holds, no collection runs here. /// internal sealed class HotReloadHealthContributor(ModuleContextMonitor monitor) : IHealthContributor { /// The key of this check in . internal const string CheckName = "hotreload"; public void Contribute(HealthEvaluation result) { if (monitor.Notice is { } notice) { result.Checks[CheckName] = HealthStatus.Degraded; result.Details[CheckName] = notice; return; } result.Checks[CheckName] = HealthStatus.Healthy; } }