public Client (string host, string? username = null, string? password = null) throws ClientError

Create a new Couchbase Client with optional parameters. The default will connect to localhost on port 8091, with the default bucket and no password.

Default example to localhost:8091:

  var client = new Couchbase.Client("http://localhost:8091/pools");
Example to outside host, using the bucket "mybucket".
  var client = new Couchbase.Client( "http://cb-server:8091", "mybucket" );


host Host or hosts to connect to. This can be a single URI in the form http://localhost:8091/pools , or a list of host:port, separated by ';'.
username Username or bucket name
password Password for the given bucket