Config config = new Config();
var manager = config.CreateManagerFile("config path");
var bucket = manager.Cluster.OpenBucket("config bucket");
var cluster = config.LoadConfigFile("config path");
//Get config template
Config.WriteConifFile("write config template path");
var config = Config.GetConfig();
//In Web Project
//Startup.cs -> ConfigureServices Method
services.AddScoped((x) =>
{
Cyaim.Couchbase.Manager.Configuration.Config config = new Cyaim.Couchbase.Manager.Configuration.Config();
var couchbaseManager = new Cyaim.Couchbase.Manager.Type.CouchbaseConfig();
Configuration.GetSection("CouchbaseConfig").Bind(couchbaseManager);
return config.CreateManager(couchbaseManager);
});
//Controller constructor method
public DemoController(Cyaim.Couchbase.Manager.CouchbaseManager couchbaseManager)
{
//To do Handler Code
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Cyaim/CouchbaseManager
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published