示例#1
0
        public override HazelcastInstance ConnectToHazelcast()
        {
            ClientConfig clientConfig = new ClientConfig();

            ClientNetworkConfig networkConfig = clientConfig.NetworkConfig;

//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            _remoteMembersResolver.resolve(AdvertisedSocketAddress::toString).forEach(networkConfig.addAddress);

            AdditionalConfig(networkConfig, _logProvider);

            return(HazelcastClient.newHazelcastClient(clientConfig));
        }
示例#2
0
 /// <param name="networkConfig"> </param>
 /// <param name="logProvider"> </param>
 protected internal virtual void AdditionalConfig(ClientNetworkConfig networkConfig, LogProvider logProvider)
 {
     SecureHazelcastConfiguration.ConfigureSsl(networkConfig, this._sslPolicy, logProvider);
 }
示例#3
0
        /// <param name="clientNetworkConfig"> </param>
        /// <param name="sslPolicy"> </param>
        /// <param name="logProvider"> </param>
        public static void ConfigureSsl(ClientNetworkConfig clientNetworkConfig, SslPolicy sslPolicy, LogProvider logProvider)
        {
            SSLConfig sslConfig = CommonSslConfig(sslPolicy, logProvider);

            clientNetworkConfig.SSLConfig = sslConfig;
        }
示例#4
0
 protected internal virtual void AdditionalConfig(ClientNetworkConfig networkConfig, LogProvider logProvider)
 {
 }