public CouchbaseStorage(CouchbaseManager manager, string storageName) { this.storageName = storageName; db = manager.OpenDatabase(storageName); Init(); }
/// <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(); }