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

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-st...

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 Answers

« Back to question.

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

« Back to question.

Hi ohadinho

I put an answer here to your question on SO:

http://stackoverflow.com/questions/20042636/how-to-test-connectivity-to-...