@@ -164,7 +164,8 @@ private DeleteResult DeleteMany(FilterDefinition<TDocument> filter, DeleteOption
164
164
var bulkWriteOptions = new BulkWriteOptions
165
165
{
166
166
Comment = options . Comment ,
167
- Let = options . Let
167
+ Let = options . Let ,
168
+ Timeout = options . Timeout
168
169
} ;
169
170
var result = bulkWriteFunc ( new [ ] { model } , bulkWriteOptions ) ;
170
171
return DeleteResult . FromCore ( result ) ;
@@ -205,7 +206,8 @@ private async Task<DeleteResult> DeleteManyAsync(FilterDefinition<TDocument> fil
205
206
var bulkWriteOptions = new BulkWriteOptions
206
207
{
207
208
Comment = options . Comment ,
208
- Let = options . Let
209
+ Let = options . Let ,
210
+ Timeout = options . Timeout
209
211
} ;
210
212
var result = await bulkWriteFuncAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
211
213
return DeleteResult . FromCore ( result ) ;
@@ -246,7 +248,8 @@ private DeleteResult DeleteOne(FilterDefinition<TDocument> filter, DeleteOptions
246
248
var bulkWriteOptions = new BulkWriteOptions
247
249
{
248
250
Comment = options . Comment ,
249
- Let = options . Let
251
+ Let = options . Let ,
252
+ Timeout = options . Timeout
250
253
} ;
251
254
var result = bulkWrite ( new [ ] { model } , bulkWriteOptions ) ;
252
255
return DeleteResult . FromCore ( result ) ;
@@ -287,7 +290,8 @@ private async Task<DeleteResult> DeleteOneAsync(FilterDefinition<TDocument> filt
287
290
var bulkWriteOptions = new BulkWriteOptions
288
291
{
289
292
Comment = options . Comment ,
290
- Let = options . Let
293
+ Let = options . Let ,
294
+ Timeout = options . Timeout
291
295
} ;
292
296
var result = await bulkWriteAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
293
297
return DeleteResult . FromCore ( result ) ;
@@ -436,7 +440,7 @@ private void InsertOne(TDocument document, InsertOneOptions options, Action<IEnu
436
440
{
437
441
BypassDocumentValidation = options . BypassDocumentValidation ,
438
442
Comment = options . Comment ,
439
- Timeout = options . Timeout ,
443
+ Timeout = options . Timeout
440
444
} ;
441
445
bulkWrite ( new [ ] { model } , bulkWriteOptions ) ;
442
446
}
@@ -472,7 +476,8 @@ private async Task InsertOneAsync(TDocument document, InsertOneOptions options,
472
476
var bulkWriteOptions = options == null ? null : new BulkWriteOptions
473
477
{
474
478
BypassDocumentValidation = options . BypassDocumentValidation ,
475
- Comment = options . Comment
479
+ Comment = options . Comment ,
480
+ Timeout = options . Timeout
476
481
} ;
477
482
await bulkWriteAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
478
483
}
@@ -501,7 +506,8 @@ private void InsertMany(IEnumerable<TDocument> documents, InsertManyOptions opti
501
506
{
502
507
BypassDocumentValidation = options . BypassDocumentValidation ,
503
508
Comment = options . Comment ,
504
- IsOrdered = options . IsOrdered
509
+ IsOrdered = options . IsOrdered ,
510
+ Timeout = options . Timeout
505
511
} ;
506
512
bulkWrite ( models , bulkWriteOptions ) ;
507
513
}
@@ -525,7 +531,8 @@ private Task InsertManyAsync(IEnumerable<TDocument> documents, InsertManyOptions
525
531
{
526
532
BypassDocumentValidation = options . BypassDocumentValidation ,
527
533
Comment = options . Comment ,
528
- IsOrdered = options . IsOrdered
534
+ IsOrdered = options . IsOrdered ,
535
+ Timeout = options . Timeout
529
536
} ;
530
537
return bulkWriteAsync ( models , bulkWriteOptions ) ;
531
538
}
@@ -599,7 +606,8 @@ private ReplaceOneResult ReplaceOne(FilterDefinition<TDocument> filter, TDocumen
599
606
{
600
607
BypassDocumentValidation = options . BypassDocumentValidation ,
601
608
Comment = options . Comment ,
602
- Let = options . Let
609
+ Let = options . Let ,
610
+ Timeout = options . Timeout
603
611
} ;
604
612
var result = bulkWrite ( new [ ] { model } , bulkWriteOptions ) ;
605
613
return ReplaceOneResult . FromCore ( result ) ;
@@ -657,7 +665,8 @@ private async Task<ReplaceOneResult> ReplaceOneAsync(FilterDefinition<TDocument>
657
665
{
658
666
BypassDocumentValidation = options . BypassDocumentValidation ,
659
667
Comment = options . Comment ,
660
- Let = options . Let
668
+ Let = options . Let ,
669
+ Timeout = options . Timeout
661
670
} ;
662
671
var result = await bulkWriteAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
663
672
return ReplaceOneResult . FromCore ( result ) ;
@@ -698,7 +707,8 @@ private UpdateResult UpdateMany(FilterDefinition<TDocument> filter, UpdateDefini
698
707
{
699
708
BypassDocumentValidation = options . BypassDocumentValidation ,
700
709
Comment = options . Comment ,
701
- Let = options . Let
710
+ Let = options . Let ,
711
+ Timeout = options . Timeout
702
712
} ;
703
713
var result = bulkWrite ( new [ ] { model } , bulkWriteOptions ) ;
704
714
return UpdateResult . FromCore ( result ) ;
@@ -739,7 +749,8 @@ private async Task<UpdateResult> UpdateManyAsync(FilterDefinition<TDocument> fil
739
749
{
740
750
BypassDocumentValidation = options . BypassDocumentValidation ,
741
751
Comment = options . Comment ,
742
- Let = options . Let
752
+ Let = options . Let ,
753
+ Timeout = options . Timeout
743
754
} ;
744
755
var result = await bulkWriteAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
745
756
return UpdateResult . FromCore ( result ) ;
@@ -785,7 +796,8 @@ private UpdateResult UpdateOne(FilterDefinition<TDocument> filter, UpdateDefinit
785
796
{
786
797
BypassDocumentValidation = options . BypassDocumentValidation ,
787
798
Comment = options . Comment ,
788
- Let = options . Let
799
+ Let = options . Let ,
800
+ Timeout = options . Timeout
789
801
} ;
790
802
var result = bulkWrite ( new [ ] { model } , bulkWriteOptions ) ;
791
803
return UpdateResult . FromCore ( result ) ;
@@ -831,7 +843,8 @@ private async Task<UpdateResult> UpdateOneAsync(FilterDefinition<TDocument> filt
831
843
{
832
844
BypassDocumentValidation = options . BypassDocumentValidation ,
833
845
Comment = options . Comment ,
834
- Let = options . Let
846
+ Let = options . Let ,
847
+ Timeout = options . Timeout
835
848
} ;
836
849
var result = await bulkWriteAsync ( new [ ] { model } , bulkWriteOptions ) . ConfigureAwait ( false ) ;
837
850
return UpdateResult . FromCore ( result ) ;
0 commit comments