Im using CouchbaseNetClient and DI (v3.5.2) and we were able to create and register for multiple buckets previously but in the current version we cannot authenticate with multiple buckets as below.
services
.AddCouchbase(opt =>
{
opt.ConnectionString = couchbaseSettings.ConnectionString;
if (couchbaseSettings.UseSsl)
opt.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12;
opt.UserName = couchbaseSettings.Username;
opt.Password = couchbaseSettings.Password;
})
.AddCouchbaseBucket<ISiteBucketProvider>("site")
.AddCouchbaseBucket<IProductsBucketProvider>("products");
In previous (v2.0.2) versions we use to manage multiple buckets as below
services
.AddCouchbase(configuration.GetSection("Couchbase"))
.AddCouchbaseBucket<IProductsBucketProvider>("products", productsPassword)
.AddCouchbaseBucket<ISiteBucketProvider>("site", sitePassword);
How can we achieve above with latest version of couchbase .net client?