public static CouchbaseClient Connect(string bucketName, int millisecondsToWaitForVBucketMap, params Server[] servers) { CouchbaseClient client; try { client = new CouchbaseClient(bucketName, servers); } catch (Exception e) { throw new Exception("Failed to connect client", e); } if (!client.WaitForInitialClusterUpdate(millisecondsToWaitForVBucketMap)) { throw new TimeoutException("Timeout expired while waiting for vbucket map."); } return client; }