How to test connectivity to couchbase server using .NET sdk?


#1

I’m trying to test connectivity to couchbase server using the .NET sdk.
I’ve tried to get a test key in order to do it, but I’m getting “null” (instead of getting an exception mention that couchbase server is done).
I’ve also read this:
http://www.couchbase.com/docs//couchbase-manual-2.0/couchbase-getting-started-testing.html

But it doesn’t say anything about testing connectivity from an application code.

Is there any way of testing connection to couchbase server via code ?


#2

Hi ohadinho

I put an answer here to your question on SO:


#3

You can use the CouchbaseClient.Stats() method to get state of the cluster.