Ejemplo n.º 1
0
        public static void CreateBucketConnection()
        {
            var cluster  = ClusterFactory.GetCluster();
            var cbConfig = new CouchbaseConfiguration();

            var password = cbConfig.GetPassword();

            if (!string.IsNullOrWhiteSpace(password))
            {
                bucket = cluster.OpenBucket(cbConfig.GetBucket(), password);
            }
            else
            {
                bucket = cluster.OpenBucket(cbConfig.GetBucket());
            }

            bucketManager = bucket.CreateManager("Administrator", "123456");
        }
 private static void CreateBucketConnection()
 {
     var cluster = ClusterFactory.GetCluster();
     ////
 }