public async Task RefreshDatabases() { this.Databases = new List <DatabaseModel>(); FeedResponse <Database> databases; using (PerformanceWatcher.Start("ReadDatabaseFeed")) { databases = await this._client.ReadDatabaseFeedAsync(); } foreach (Database db in databases) { DatabaseModel model = new DatabaseModel(_client, this, db); this.Databases.Add(model); } }
public async Task RefreshCollections() { this.Collections = new List <CollectionModel>(); FeedResponse <DocumentCollection> collections; using (PerformanceWatcher.Start("ReadCollectionFeed")) { collections = await this._client.ReadDocumentCollectionFeedAsync(_db.SelfLink); } foreach (DocumentCollection collection in collections) { CollectionModel model = new CollectionModel(_client, this, collection); this.Collections.Add(model); } }