File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ The following code example shows a custom ``BsonRegularExpression`` serializer:
8484
8585.. code-block:: csharp
8686
87- class CustomRegularExpressionSerializer : SerializerBase <Regex>
87+ class CustomRegularExpressionSerializer : IBsonSerializer <Regex>
8888 {
8989 public override Regex Deserialize(BsonDeserializationContext context, BsonDeserializationArgs args)
9090 {
Original file line number Diff line number Diff line change @@ -203,4 +203,11 @@ Version 3.0 Breaking Changes
203203 property instead.
204204
205205- The driver removes individual cluster events from ``MongoClient.Cluster``. To listen for
206- cluster events, use `ClusterBuilder.Subscribe() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Core.Configuration.ClusterBuilder.Subscribe.html>`__.
206+ cluster events, use `ClusterBuilder.Subscribe() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Core.Configuration.ClusterBuilder.Subscribe.html>`__.
207+
208+ - All concrete serializers have been sealed. To implement a custom serializer, implement the
209+ ``IBsonSerializer`` interface.
210+
211+ - The ``MongoClient``, ``MongoDatabase``, and ``MongoCollection`` classes have been
212+ sealed. We recommend using the ``IMongoClient``, ``IMongoDatabase``, and
213+ ``IMongoCollection`` interfaces directly.
You can’t perform that action at this time.
0 commit comments