/// <summary>
 /// Gets the pooling options. If not specified, gets the default by protocol version
 /// </summary>
 internal PoolingOptions GetPoolingOptions(ProtocolVersion protocolVersion)
 {
     if (_poolingOptions != null)
     {
         return(_poolingOptions);
     }
     _poolingOptions = PoolingOptions.Create(protocolVersion);
     return(_poolingOptions);
 }
 internal int?GetHeartBeatInterval()
 {
     return(PoolingOptions != null?PoolingOptions.GetHeartBeatInterval() : PoolingOptions.Create().GetHeartBeatInterval());
 }
 /// <summary>
 /// Gets the pooling options. If not specified, creates a new instance with the default by protocol version.
 /// This instance is not stored.
 /// </summary>
 internal PoolingOptions GetOrCreatePoolingOptions(ProtocolVersion protocolVersion)
 {
     return(PoolingOptions ?? PoolingOptions.Create(protocolVersion));
 }