-
Notifications
You must be signed in to change notification settings - Fork 25
DOCSP-45715: Sealed class v3.0 changes #345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,4 +203,11 @@ Version 3.0 Breaking Changes | |
property instead. | ||
|
||
- The driver removes individual cluster events from ``MongoClient.Cluster``. To listen for | ||
cluster events, use `ClusterBuilder.Subscribe() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Core.Configuration.ClusterBuilder.Subscribe.html>`__. | ||
cluster events, use `ClusterBuilder.Subscribe() <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Core.Configuration.ClusterBuilder.Subscribe.html>`__. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We had some questions of "why" classes got sealed. |
||
- The driver seals all concrete serializers. To implement a custom serializer, implement the | ||
``IBsonSerializer`` interface. | ||
|
||
- The driver seals the ``MongoClient``, ``MongoDatabase``, and ``MongoCollection`` classes. | ||
We recommend using the ``IMongoClient``, ``IMongoDatabase``, and ``IMongoCollection`` | ||
interfaces directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't compile, so need to adapt the
CustomRegularExpressionSerializer
accordingly.