[CSHARP-1187] Ability to set maxTimeMS via Linq Created: 02/Mar/15  Updated: 02/Feb/18  Resolved: 02/Feb/18

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Minor - P4
Reporter: Steve Ranck Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We would like to be able to set the maxTimeMS option via Linq.

I have successfully implemented this feature against the v1.9.2 tag (the version we're currently using for our app). I more or less followed the pattern used by WithIndex and created a WithMaxTime extension method.

If I submit a pull request, is this something that would be accepted? If so, should I submit against v1.X, master, both?



 Comments   
Comment by Robert Stam [ 02/Feb/18 ]

In the current version of the driver this is possible by passing AggregateOptions to the AsQueryable method.

Generated at Wed Feb 07 21:38:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.