예제 #1
0
 /// <summary>
 /// Creates a new instance of TcpSocket using the endpoint and options provided.
 /// </summary>
 public TcpSocket(IPEndPoint ipEndPoint, SocketOptions options, SSLOptions sslOptions)
 {
     IPEndPoint = ipEndPoint;
     Options    = options;
     SSLOptions = sslOptions;
 }
예제 #2
0
 /// <summary>
 ///  Enables the use of SSL for the created Cluster using the provided options.
 /// </summary>
 /// <remarks>
 /// If SSL is enabled, the driver will not connect to any
 /// Cassandra nodes that doesn't have SSL enabled and it is strongly
 /// advised to enable SSL on every Cassandra node if you plan on using
 /// SSL in the driver. Note that SSL certificate common name(CN) on Cassandra node must match Cassandra node hostname.
 /// </remarks>
 /// <param name="sslOptions">SSL options to use.</param>
 /// <returns>this builder</returns>
 public Builder WithSSL(SSLOptions sslOptions)
 {
     _sslOptions = sslOptions;
     return(this);
 }
예제 #3
0
 /// <summary>
 ///  Enables the use of SSL for the created Cluster using the provided options.
 /// </summary>
 /// <remarks>
 /// If SSL is enabled, the driver will not connect to any
 /// Cassandra nodes that doesn't have SSL enabled and it is strongly
 /// advised to enable SSL on every Cassandra node if you plan on using
 /// SSL in the driver. Note that SSL certificate common name(CN) on Cassandra node must match Cassandra node hostname.
 /// </remarks>
 /// <param name="sslOptions">SSL options to use.</param>
 /// <returns>this builder</returns>
 // ReSharper disable once InconsistentNaming
 public new DseClusterBuilder WithSSL(SSLOptions sslOptions)
 {
     base.WithSSL(sslOptions);
     return(this);
 }
예제 #4
0
 /// <summary>
 ///  Enables the use of SSL for the created Cluster. Calling this method will use default SSL options.
 /// </summary>
 /// <remarks>
 /// If SSL is enabled, the driver will not connect to any
 /// Cassandra nodes that doesn't have SSL enabled and it is strongly
 /// advised to enable SSL on every Cassandra node if you plan on using
 /// SSL in the driver. Note that SSL certificate common name(CN) on Cassandra node must match Cassandra node hostname.
 /// </remarks>
 /// <returns>this builder</returns>
 public Builder WithSSL()
 {
     _sslOptions = new SSLOptions();
     return(this);
 }