Skip to content

Commit

Permalink
CSHARP-5326: Mark API as obsolete: Guids (#1495)
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe authored Oct 14, 2024
1 parent 16ea688 commit 0bf1089
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions MongoDB.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,6 @@
<Rule Id="CA2242" Action="Warning" />
<Rule Id="CA5350" Action="None" />
<Rule Id="CA5351" Action="None" />
<Rule Id="CS0618" Action="None"/>
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions MongoDBLegacy.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@
<Rule Id="CA2242" Action="Warning" />
<Rule Id="CA5350" Action="None" />
<Rule Id="CA5351" Action="None" />
<Rule Id="CS0618" Action="None"/>
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions MongoDBLegacyTest.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,6 @@
<Rule Id="CA3075" Action="None" />
<Rule Id="CA5350" Action="None" />
<Rule Id="CA5351" Action="None" />
<Rule Id="CS0618" Action="None"/>
</Rules>
</RuleSet>
1 change: 1 addition & 0 deletions MongoDBTest.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@
<Rule Id="CA2242" Action="Warning" />
<Rule Id="CA5350" Action="None" />
<Rule Id="CA5351" Action="None" />
<Rule Id="CS0618" Action="None"/>
</Rules>
</RuleSet>
3 changes: 3 additions & 0 deletions src/MongoDB.Bson/ObjectModel/GuidRepresentationMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
* limitations under the License.
*/

using System;

namespace MongoDB.Bson
{
/// <summary>
/// Whether to handle GuidRepresentation using the v2.x mode of the v3.x mode.
/// See the reference documentation for details.
/// </summary>
[Obsolete("This enum will be made removed in a later release, with V3 being the only representation mode.")]
public enum GuidRepresentationMode
{
/// <summary>
Expand Down

0 comments on commit 0bf1089

Please sign in to comment.