C# configuring for Multiple seed connection


#1

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);