csharp
public record class HealthOptionsWhat makes a shard Lost rather than merely quiet.
Fields and properties (5)
public TimeSpan IntervalHow often a realm is expected to say something.
public int MissesBeforeLostHow many it may miss. Doc 27 § Grains says three, which at the default interval is six seconds — long enough to survive a garbage collection and short enough that a crashed shard's players are placed again before they give up.
public Func<DateTimeOffset> NowThe clock.
public static HealthOptions DefaultDoc 27's defaults.
public TimeSpan PatienceHow long silence has to last before a shard is declared lost.
Methods (1)
public HealthOptions(TimeSpan Interval, int MissesBeforeLost, Func<DateTimeOffset> Now)What makes a shard Lost rather than merely quiet.
Used by (3)
- MapGrainVixen.Live.Orchestrator
- ShardGrainVixen.Live.Orchestrator
- ShardLifecycleVixen.Live.Orchestrator