Exemplo n.º 1
0
        public override void AddContactingInstance(ClusterMessage.ConfigurationRequestState instance, string discoveryHeader)
        {
            ISet <InstanceId> contactsOfRemote = _contactingInstances.computeIfAbsent(instance.JoiningId, k => new HashSet <InstanceId>());

            // Duplicates of previous calls will be ignored by virtue of this being a set
            contactsOfRemote.addAll(ParseDiscoveryHeader(discoveryHeader));
        }
Exemplo n.º 2
0
 public override bool HaveWeContactedInstance(ClusterMessage.ConfigurationRequestState configurationRequested)
 {
     return(_contactingInstances.ContainsKey(configurationRequested.JoiningId) && _contactingInstances[configurationRequested.JoiningId].Contains(MyId));
 }