private void BroadcastAppear(IComponent component, Partition curPartition) { IMessage message = component.AppearMessage(); if (message == null) { return; } this.Broadcast(curPartition, component.SightDegree, message); }
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); } }