internal SharedDiscoveryCoreClient(SharedDiscoveryService sharedDiscoveryService, MemberId member, LogProvider logProvider, Config config) : base(config, member, logProvider, logProvider) { this._localDBName = config.Get(CausalClusteringSettings.database); this._sharedDiscoveryService = sharedDiscoveryService; this._coreServerInfo = CoreServerInfo.From(config); this._refusesToBeLeader = config.Get(CausalClusteringSettings.refuse_to_be_leader); }
internal SharedDiscoveryReadReplicaClient(SharedDiscoveryService sharedDiscoveryService, Config config, MemberId memberId, LogProvider logProvider) { this._sharedDiscoveryService = sharedDiscoveryService; this._dbName = config.Get(CausalClusteringSettings.database); //JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter: this._addresses = new ReadReplicaInfo(ClientConnectorAddresses.ExtractFromConfig(config), socketAddress(config.Get(CausalClusteringSettings.transaction_advertised_address).ToString(), AdvertisedSocketAddress::new), _dbName); this._memberId = memberId; this._log = logProvider.getLog(this.GetType()); }