public virtual Optional <CatchupServerAddress> Find(MemberId upstream) { Optional <CatchupServerAddress> coreCatchupAddress = _coreTopology.find(upstream).map(a => ( CatchupServerAddress )a); Optional <CatchupServerAddress> readCatchupAddress = _readReplicaTopology.find(upstream).map(a => ( CatchupServerAddress )a); return(coreCatchupAddress.map(Optional.of).orElse(readCatchupAddress)); }
public override Optional <AdvertisedSocketAddress> FindCatchupAddress(MemberId upstream) { //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: return(LocalCoreServers().find(upstream).map(info => info.CatchupServer).orElseGet(() => _readReplicaTopology.find(upstream).map(ReadReplicaInfo::getCatchupServer))); }