Vixen
02b45cc4
csharp
public static class Keys

How a grain is addressed. One place, so two callers cannot spell a key differently.

Read the guide page for this →

Remarks

⚠ A grain key is an identity, and two spellings of one identity are two grains. A gate asking for maps/queensdale|eu|0.1.0+c0ffee and an orchestrator asking for maps/queensdale|EU|0.1.0+c0ffee would be two fleets for one map, each unaware of the other — which presents as players who cannot find each other and is diagnosed in an afternoon.

Methods (3)

  • public static string ForMap(ShardKey key)

    The key of the map grain for a shard key.

  • public static string ForPlayer(PlayerKey player)

    The key of a character's player grain.

  • public static string ForFleet(string region)

    The key of a region's fleet grain.

Used by (3)

  • ClusterFleetDirectoryVixen.Live.Gate
  • ClusterGrainsVixen.Live.Realm.Cluster
  • ClusterSerializationTestsVixen.Live.Cluster.Tests