@@ -1426,7 +1426,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
1426
1426
/// <returns>
1427
1427
/// The deleted document if one was deleted.
1428
1428
/// </returns>
1429
- public static TDocument FindOneAndDelete < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , FindOneAndDeleteOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1429
+ public static TDocument FindOneAndDelete < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , FindOneAndDeleteOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1430
1430
{
1431
1431
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
1432
1432
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
@@ -1548,7 +1548,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
1548
1548
/// <returns>
1549
1549
/// The deleted document if one was deleted.
1550
1550
/// </returns>
1551
- public static Task < TDocument > FindOneAndDeleteAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , FindOneAndDeleteOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1551
+ public static Task < TDocument > FindOneAndDeleteAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , FindOneAndDeleteOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1552
1552
{
1553
1553
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
1554
1554
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
@@ -1672,7 +1672,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
1672
1672
/// <returns>
1673
1673
/// The returned document.
1674
1674
/// </returns>
1675
- public static TDocument FindOneAndReplace < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , TDocument replacement , FindOneAndReplaceOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1675
+ public static TDocument FindOneAndReplace < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , TDocument replacement , FindOneAndReplaceOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1676
1676
{
1677
1677
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
1678
1678
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
@@ -1800,7 +1800,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
1800
1800
/// <returns>
1801
1801
/// The returned document.
1802
1802
/// </returns>
1803
- public static Task < TDocument > FindOneAndReplaceAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , TDocument replacement , FindOneAndReplaceOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1803
+ public static Task < TDocument > FindOneAndReplaceAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , TDocument replacement , FindOneAndReplaceOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1804
1804
{
1805
1805
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
1806
1806
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
@@ -1933,7 +1933,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
1933
1933
/// <returns>
1934
1934
/// The returned document.
1935
1935
/// </returns>
1936
- public static TDocument FindOneAndUpdate < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , UpdateDefinition < TDocument > update , FindOneAndUpdateOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1936
+ public static TDocument FindOneAndUpdate < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , UpdateDefinition < TDocument > update , FindOneAndUpdateOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
1937
1937
{
1938
1938
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
1939
1939
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
@@ -2085,7 +2085,7 @@ public static IFindFluent<TDocument, TDocument> Find<TDocument>(this IMongoColle
2085
2085
/// <returns>
2086
2086
/// The returned document.
2087
2087
/// </returns>
2088
- public static Task < TDocument > FindOneAndUpdateAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , UpdateDefinition < TDocument > update , FindOneAndUpdateOptions < TDocument , TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
2088
+ public static Task < TDocument > FindOneAndUpdateAsync < TDocument > ( this IMongoCollection < TDocument > collection , Expression < Func < TDocument , bool > > filter , UpdateDefinition < TDocument > update , FindOneAndUpdateOptions < TDocument > options = null , CancellationToken cancellationToken = default ( CancellationToken ) )
2089
2089
{
2090
2090
Ensure . IsNotNull ( collection , nameof ( collection ) ) ;
2091
2091
Ensure . IsNotNull ( filter , nameof ( filter ) ) ;
0 commit comments