示例#1
0
 public IAsyncCursor <BsonDocument> ListDatabases(CancellationToken cancellationToken = default)
 {
     return(INMAsyncCursor.Create(databases.Keys.Select(n => (new { Name = n }).ToBsonDocument())));
 }
 public IAsyncCursor <BsonDocument> ListCollections(ListCollectionsOptions options = null, CancellationToken cancellationToken = default)
 {
     return(INMAsyncCursor.Create(collections.Keys.Select(n => (new { name = n }).ToBsonDocument())));
 }