@@ -509,83 +509,75 @@ public interface IMongoCollection<TDocument>
509
509
IAsyncCursor < TField > Distinct < TField > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
510
510
511
511
/// <summary>
512
- /// Gets the distinct values for a specified array field.
512
+ /// Gets the distinct values for a specified field.
513
513
/// </summary>
514
- /// <typeparam name="TField">The type of the field.</typeparam>
515
- /// <typeparam name="TItem">The type of the result.</typeparam>
514
+ /// <typeparam name="TField">The type of the result.</typeparam>
516
515
/// <param name="field">The field.</param>
517
516
/// <param name="filter">The filter.</param>
518
517
/// <param name="options">The options.</param>
519
518
/// <param name="cancellationToken">The cancellation token.</param>
520
- /// <returns>A cursor.</returns>
521
- IAsyncCursor < TItem > Distinct < TField , TItem > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
522
- where TField : IEnumerable < TItem > ;
519
+ /// <returns>A Task whose result is a cursor.</returns>
520
+ Task < IAsyncCursor < TField > > DistinctAsync < TField > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
523
521
524
522
/// <summary>
525
- /// Gets the distinct values for a specified array field.
523
+ /// Gets the distinct values for a specified field.
526
524
/// </summary>
527
- /// <typeparam name="TField">The type of the field.</typeparam>
528
- /// <typeparam name="TItem">The type of the result.</typeparam>
525
+ /// <typeparam name="TField">The type of the result.</typeparam>
529
526
/// <param name="session">The session.</param>
530
527
/// <param name="field">The field.</param>
531
528
/// <param name="filter">The filter.</param>
532
529
/// <param name="options">The options.</param>
533
530
/// <param name="cancellationToken">The cancellation token.</param>
534
- /// <returns>A cursor.</returns>
535
- IAsyncCursor < TItem > Distinct < TField , TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
536
- where TField : IEnumerable < TItem > ;
531
+ /// <returns>
532
+ /// A Task whose result is a cursor.
533
+ /// </returns>
534
+ Task < IAsyncCursor < TField > > DistinctAsync < TField > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
537
535
538
536
/// <summary>
539
- /// Gets the distinct values for a specified field.
537
+ /// Gets the distinct values for a specified array field.
540
538
/// </summary>
541
- /// <typeparam name="TField ">The type of the result .</typeparam>
539
+ /// <typeparam name="TItem ">The type of the array items .</typeparam>
542
540
/// <param name="field">The field.</param>
543
541
/// <param name="filter">The filter.</param>
544
542
/// <param name="options">The options.</param>
545
543
/// <param name="cancellationToken">The cancellation token.</param>
546
- /// <returns>A Task whose result is a cursor.</returns>
547
- Task < IAsyncCursor < TField > > DistinctAsync < TField > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
544
+ /// <returns>A cursor.</returns>
545
+ IAsyncCursor < TItem > DistinctMany < TItem > ( FieldDefinition < TDocument , IEnumerable < TItem > > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
548
546
549
547
/// <summary>
550
- /// Gets the distinct values for a specified field.
548
+ /// Gets the distinct values for a specified array field.
551
549
/// </summary>
552
- /// <typeparam name="TField ">The type of the result .</typeparam>
550
+ /// <typeparam name="TItem ">The type of the array items .</typeparam>
553
551
/// <param name="session">The session.</param>
554
552
/// <param name="field">The field.</param>
555
553
/// <param name="filter">The filter.</param>
556
554
/// <param name="options">The options.</param>
557
555
/// <param name="cancellationToken">The cancellation token.</param>
558
- /// <returns>
559
- /// A Task whose result is a cursor.
560
- /// </returns>
561
- Task < IAsyncCursor < TField > > DistinctAsync < TField > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
556
+ /// <returns>A cursor.</returns>
557
+ IAsyncCursor < TItem > DistinctMany < TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , IEnumerable < TItem > > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
562
558
563
559
/// <summary>
564
560
/// Gets the distinct values for a specified array field.
565
561
/// </summary>
566
- /// <typeparam name="TField">The type of the field.</typeparam>
567
- /// <typeparam name="TItem">The type of the result.</typeparam>
562
+ /// <typeparam name="TItem">The type of the array items.</typeparam>
568
563
/// <param name="field">The field.</param>
569
564
/// <param name="filter">The filter.</param>
570
565
/// <param name="options">The options.</param>
571
566
/// <param name="cancellationToken">The cancellation token.</param>
572
567
/// <returns>A cursor.</returns>
573
- Task < IAsyncCursor < TItem > > DistinctAsync < TField , TItem > ( FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
574
- where TField : IEnumerable < TItem > ;
568
+ Task < IAsyncCursor < TItem > > DistinctManyAsync < TItem > ( FieldDefinition < TDocument , IEnumerable < TItem > > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
575
569
576
570
/// <summary>
577
571
/// Gets the distinct values for a specified array field.
578
572
/// </summary>
579
- /// <typeparam name="TField">The type of the field.</typeparam>
580
- /// <typeparam name="TItem">The type of the result.</typeparam>
573
+ /// <typeparam name="TItem">The type of the array items.</typeparam>
581
574
/// <param name="session">The session.</param>
582
575
/// <param name="field">The field.</param>
583
576
/// <param name="filter">The filter.</param>
584
577
/// <param name="options">The options.</param>
585
578
/// <param name="cancellationToken">The cancellation token.</param>
586
579
/// <returns>A cursor.</returns>
587
- Task < IAsyncCursor < TItem > > DistinctAsync < TField , TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , TField > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
588
- where TField : IEnumerable < TItem > ;
580
+ Task < IAsyncCursor < TItem > > DistinctManyAsync < TItem > ( IClientSessionHandle session , FieldDefinition < TDocument , IEnumerable < TItem > > field , FilterDefinition < TDocument > filter , DistinctOptions options = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
589
581
590
582
/// <summary>
591
583
/// Returns an estimate of the number of documents in the collection.
0 commit comments