Skip to content

Commit 576fec4

Browse files
authored
CSHARP-4895: Mark API as obsolete: Driver + Core (#1500)
1 parent 0bf1089 commit 576fec4

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/MongoDB.Driver/MongoClientBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace MongoDB.Driver
2525
/// <summary>
2626
/// Base class for implementors of <see cref="IMongoClient"/>.
2727
/// </summary>
28+
[Obsolete("This class will be removed in a later release.")]
2829
public abstract class MongoClientBase : IMongoClient
2930
{
3031
/// <inheritdoc />

src/MongoDB.Driver/MongoCollectionBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace MongoDB.Driver
2929
/// Base class for implementors of <see cref="IMongoCollection{TDocument}"/>.
3030
/// </summary>
3131
/// <typeparam name="TDocument">The type of the document.</typeparam>
32+
[Obsolete("This class will be made internal in a later release.")]
3233
public abstract class MongoCollectionBase<TDocument> : IMongoCollection<TDocument>
3334
{
3435
/// <inheritdoc />

src/MongoDB.Driver/MongoDatabaseBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver
2323
/// <summary>
2424
/// Base class for implementors of <see cref="IMongoDatabase" />.
2525
/// </summary>
26+
[Obsolete("This class will be removed in a later release.")]
2627
public abstract class MongoDatabaseBase : IMongoDatabase
2728
{
2829
// public properties

tests/MongoDB.Driver.TestConsoleApplication/MongoDB.Driver.TestConsoleApplication.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
CA1801;
2323
CA1812;
2424
CA1822;
25-
CA2007
25+
CA2007;
26+
CS0618
2627
</NoWarn>
2728
</PropertyGroup>
2829

0 commit comments

Comments
 (0)