diff --git a/Directory.Packages.props b/Directory.Packages.props index 42793f4..cb96397 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -21,7 +21,7 @@ - + diff --git a/src/Transactions/MongoTransactionCollection.cs b/src/Transactions/MongoTransactionCollection.cs index ef46629..1ae23e1 100644 --- a/src/Transactions/MongoTransactionCollection.cs +++ b/src/Transactions/MongoTransactionCollection.cs @@ -437,6 +437,44 @@ public Task> DistinctAsync( return _collection.DistinctAsync(session, field, filter, options, cancellationToken); } + public IAsyncCursor DistinctMany( + FieldDefinition> field, + FilterDefinition filter, + DistinctOptions? options = null, + CancellationToken cancellationToken = default) + { + return _collection.DistinctMany(field, filter, options, cancellationToken); + } + + public IAsyncCursor DistinctMany( + IClientSessionHandle session, + FieldDefinition> field, + FilterDefinition filter, + DistinctOptions? options = null, + CancellationToken cancellationToken = default) + { + return _collection.DistinctMany(session, field, filter, options, cancellationToken); + } + + public Task> DistinctManyAsync( + FieldDefinition> field, + FilterDefinition filter, + DistinctOptions? options = null, + CancellationToken cancellationToken = default) + { + return _collection.DistinctManyAsync(field, filter, options, cancellationToken); + } + + public Task> DistinctManyAsync( + IClientSessionHandle session, + FieldDefinition> field, + FilterDefinition filter, + DistinctOptions? options = null, + CancellationToken cancellationToken = default) + { + return _collection.DistinctManyAsync(session, field, filter, options, cancellationToken); + } + public long EstimatedDocumentCount( EstimatedDocumentCountOptions? options = null, CancellationToken cancellationToken = default)