AsyncClient(String, Int32) Constructor

Initialize asynchronous client. If the host connection succeeds, the client will:
  • Add host to the cluster map
  • Request host's list of other nodes in cluster
  • Add these nodes to cluster map

If the connection succeeds, the client is ready to process database requests. If the connection fails, the cluster will remain in a disconnected state until the server is activated.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public AsyncClient(
	string hostname,
	int port
)

Parameters

hostname  String
host name
port  Int32
host port

Exceptions

AerospikeExceptionif host connection fails

See Also