Use multiple couchbase with auth and no auth in .NET

Hey guys,

I have two cluster couchbase. I can connect to first cluster with no auth but i have to connect to second cluster with auth in the same application. ClusterHelper is single instance and conflicted with each other clusters and I cannot split clusters to different instance in application. How can I solve it?


ClusterHelper is just that, a helper. It’s designed to help the 99% use case where the consumer has a single cluster and needs to keep a singleton reference to that cluster. To use multiple clusters, you’ll need to manage your own singletons, one for each cluster. Just instantiate a Cluster instance for each and keep them open for the application lifetime.