[CSHARP-1146] Modify ReadPreference and WriteConcern to use Optional<T> and With like the settings classes Created: 11/Dec/14  Updated: 02/Apr/15  Resolved: 17/Dec/14

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

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

ReadPreference and WriteConcern should use Optional<T> in the constructor and have a single With method with Optional<T> parameters,like the XyzSettings classes do.



 Comments   
Comment by Githook User [ 17/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1146: Modify ReadPreference to use Optional<T> and With method.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e8978ffd082cc744d3997003f50502fe64d36e6c

Comment by Githook User [ 15/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1146: Add IsAcknowledged to WriteConcern and deprecate Enabled.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/71107b6096ea5fd733bf4d44cd0e907e527eb87e

Comment by Githook User [ 12/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1146: Remove Enabled property from WriteConcern (replaced by IsAcknowledged).
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b2aa69ae3832f3c37d3fe2c54d173eedd9c7133f

Comment by Githook User [ 12/Dec/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1146: Modify WriteConcern to use Optional<T> and With method.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/02e4709c96498bc68d52af9f689917576753813c

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