public bool CreateDesignDocument(string bucket, string name, Stream source) { string json = null; using (var reader = new StreamReader(source)) { json = reader.ReadToEnd(); } return CreateDesignDocument(bucket, name, json); }
public void SetUp() { _Client = CouchbaseClientFactory.CreateCouchbaseClient(); //TODO: uncomment this line when next NuGet (1.2.7) is pushed //log4net.Config.XmlConfigurator.Configure(); var cluster = new CouchbaseCluster("couchbase"); var stream = File.Open(@"Data\\ThingViews.json", FileMode.Open); cluster.CreateDesignDocument("default", "things", stream); }