Exemplo n.º 1
0
        private void BroadcastAppear(IComponent component, Partition curPartition)
        {
            IMessage message = component.AppearMessage();

            if (message == null)
            {
                return;
            }
            this.Broadcast(curPartition, component.SightDegree, message);
        }
Exemplo n.º 2
0
 public void SendToAllRegionMembers(IComponent component)
 {
     foreach (KeyValuePair <long, Partition> keyValuePair in this.partitions)
     {
         IMessage message = component.AppearMessage();
         if (message == null)
         {
             break;
         }
         keyValuePair.Value.Broadcast(message);
     }
 }