[CSHARP-1055] Replace CheckElementNames and CheckUpdateDocument with a more flexible ElementNameValidator Created: 29/Aug/14  Updated: 02/Apr/15  Resolved: 09/Sep/14

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

Type: Improvement 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   

In 1.x we have the following booleans to configure what kind of checking a BsonWriter should do on element names when WriteName is called:

  • CheckElementNames
  • CheckUpdateDocument

These should be replaced with a single ElementNameValidator property (of type IElementNameValidator) where the caller supplies the validator that suits the caller's needs.



 Comments   
Comment by Githook User [ 04/Sep/14 ]

Author:

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

Message: CSHARP-1055: Removed UpdateValidator from operations and added CommandValidator to CommandOperationBase.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/8d8d1d1388112927f15648396190fd567d9ed814

Comment by Githook User [ 04/Sep/14 ]

Author:

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

Message: CSHARP-1055: Code review changes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b8aaf51ad2dfeb958670e30e91d03c389846ae71

Comment by Githook User [ 04/Sep/14 ]

Author:

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

Message: CSHARP-1055: Replace CheckElementNames and CheckUpdateDocument with more flexible IElementNameValidator(s).
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/131743cd3144a16b4faad6766bbffd7c7d65d65b

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