private void HandleResendShardHost(ResendShardHost resend)
 {
     if (_currentState.Shards.TryGetValue(resend.Shard, out var region) && region.Equals(resend.Region))
     {
         SendHostShardMessage(resend.Shard, region);
     }
 }
Example #2
0
 private static void HandleResendShardHost <TCoordinator>(this TCoordinator coordinator, ResendShardHost resend) where TCoordinator : IShardCoordinator
 {
     if (coordinator.CurrentState.Shards.TryGetValue(resend.Shard, out var region) && region.Equals(resend.Region))
     {
         SendHostShardMessage(coordinator, resend.Shard, region);
     }
 }