csharp
public interface IRealmGrainsThe grains a realm talks to, behind one seam.
Remarks
⚠ Not a convenience — it is what makes RealmCluster testable. An IClusterClient cannot be stood up without a cluster, so a test of "does a shard report ready, and does it drain when told to" would need a silo. Behind this interface it needs four fakes that return Tasks.
It is deliberately three lookups and nothing else. Anything richer would be a second orchestrator API on the realm side, and the whole point of ADR-016 is that a realm asks narrow questions rarely.
Methods (3)
IShardGrain Shard(ShardId shard)The grain for a shard.
IMapGrain Map(ShardKey key)The grain for a map.
IPlayerGrain Player(PlayerKey player)The grain for a character.
Used by (3)
- ClusterGrainsVixen.Live.Realm.Cluster
- FakeClusterVixen.Live.Realm.Cluster.Tests
- RealmClusterVixen.Live.Realm.Cluster