//Gets the receiving urls of each replica, i.e the urls which will send to the each replica private void GetUrlsFrom() { foreach (string operator_id in config.Keys) { ArrayList array; repServices.TryGetValue(operator_id, out array); for (int i = 0; i < array.Count; i++) { RepServices repS = (RepServices)array[i]; RepInfo ri = repS.getRepInfoFromRep(); ArrayList getFrom = getFromUrls(ri.OperatorId); ri.ReceiveInfoUrls = getFrom; repS.updateRepInfo(ri); } } RepInfos.Clear(); foreach (string operator_id in config.Keys) { ArrayList array; repServices.TryGetValue(operator_id, out array); for (int i = 0; i < array.Count; i++) { RepServices repS = (RepServices)array[i]; RepInfo ri = repS.getRepInfoFromRep(); RepInfos.Add(ri); } } }