public void Start() { _connMetricsListener?.ConnectionConnecting(_connEvent); _tcpSocketClient.Connect(_uri); SetOpened(); _logger?.Debug($"~~ [CONNECT] {_uri}"); _connMetricsListener?.ConnectionConnected(_connEvent); var version = DoHandshake(); _boltProtocol = BoltProtocolFactory.Create(version, _tcpSocketClient, _bufferSettings, _logger); }
public IBoltProtocol Connect() { _connMetricsListener?.ConnectionConnecting(_connEvent); _tcpSocketClient.Connect(_uri); SetOpened(); _logger?.Debug($"~~ [CONNECT] {_uri}"); _connMetricsListener?.ConnectionConnected(_connEvent); var version = DoHandshake(); return(SelectBoltProtocol(version)); }