csharp
public record class LeaseOptionsHow long a lease survives without a renewal, and how the cluster tells the time.
Remarks
⚠ The lease has to outlive a realm's worst pause, and no longer. Too short and a garbage collection costs a realm its right to write; too long and a crashed realm's character is unplayable until it lapses. Twenty seconds is ten heartbeats.
Fields and properties (3)
public TimeSpan LifetimeHow long a lease lasts from its last renewal.
public Func<DateTimeOffset> NowThe clock. A parameter so a test does not have to wait.
public static LeaseOptions DefaultThe defaults.
Methods (1)
public LeaseOptions(TimeSpan Lifetime, Func<DateTimeOffset> Now)How long a lease survives without a renewal, and how the cluster tells the time.
Used by (2)
- PlayerGrainVixen.Live.Orchestrator
- PlayerLeaseStateVixen.Live.Orchestrator