Fixed the .NET server shutting down while the runtime still runs (#1237)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-26 12:01:08 +01:00
1 parent 9ebfce3855
commit 902e406e1d
22 files changed
+923 -115

No files matched your search

@@ -0,0 +1,14 @@
namespace AIStudio.Tools.Services;
/// <summary>
/// How a round of RuntimeOutageCheck probes the runtime.
/// </summary>
/// <param name="Probes">How many probes a round makes at most, before the runtime counts as gone.</param>
/// <param name="Interval">How long the round waits between two probes.</param>
public readonly record struct RuntimeProbeSchedule(int Probes, TimeSpan Interval)
{
/// <summary>
/// Seven probes, ten seconds apart: the runtime counts as gone once it did not answer for a minute.
/// </summary>
public static readonly RuntimeProbeSchedule DEFAULT = new(7, TimeSpan.FromSeconds(10));
}