コード例 #1
0
 public CouchbaseStorage(CouchbaseManager manager, string storageName)
 {
     this.storageName = storageName;
     db = manager.OpenDatabase(storageName);
     Init();
 }
コード例 #2
0
 /// <summary>
 /// Retrieves a new instance of the current storage and initializes it again.
 /// </summary>
 public void Start()
 {
     ownedManager = (CouchbaseManager)App.Current.DependencyRegistry.Retrieve <IStorageManager> (InstanceType.New, dbDir);
     db           = ownedManager.OpenDatabase(storageName);
     Init();
 }