The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.
Synopsis:
Client needs to connect to multiple seed (host) on C#. Path to Solution:
There are 2 Methods to be configured:
// Method 1
AerospikeClient client = new AerospikeClient(policy, new Host("host1", 3000), new Host("host2", 3000));
// Method 2
Host[] hosts = new Host[2];
hosts[0] = new Host("host1", 3000);
hosts[1] = new Host("host2", 3000);
AerospikeClient client = new AerospikeClient(policy, hosts);