Skip to content

Commit f52e28b

Browse files
committed
DOCSP-37452: srvServiceName cxn opt (#593)
* DOCSP-37452: srvServiceName cxn opt * fix (cherry picked from commit 3f5638c) (cherry picked from commit f4d18a2)
1 parent da192ac commit f52e28b

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

source/fundamentals/connection/connection-options.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,20 @@ relevant options.
397397
| **Default**: ``0``
398398
| **Connection URI Example**: ``srvMaxHosts=3``
399399

400+
* - **SrvServiceName**
401+
- | The service name of the `SRV resource records <https://www.rfc-editor.org/rfc/rfc2782>`__
402+
| that the driver retrieves to construct your seedlist. This
403+
| property overrides the default service name for SRV lookup in
404+
| discovery and polling.
405+
|
406+
| You can use this property only if the connection-string scheme is set
407+
| to ``ConnectionStringScheme.MongoDBPlusSrv``. You cannot use it when connecting
408+
| to a replica set.
409+
|
410+
| **Data Type**: {+string-data-type+}
411+
| **Default**: ``"mongodb"``
412+
| **Connection URI Example**: ``srvServiceName="customname"``
413+
400414
* - **SslSettings**
401415
- | TLS/SSL options, including client certificates, revocation handling, and
402416
| enabled and disabled TLS/SSL protocols.

source/whats-new.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Learn what's new in:
2323
* :ref:`Version 2.24 <version-2.24>`
2424
* :ref:`Version 2.23 <version-2.23>`
2525
* :ref:`Version 2.22 <version-2.22>`
26-
* :ref:`Version 2.21 <version-2.21>`
2726

2827
.. _upcoming-breaking-changes:
2928

3029

30+
.. _csharp-version-2.25:
3131
.. _version-2.25:
3232

3333
What's New in 2.25
@@ -37,13 +37,18 @@ The 2.25 driver release includes the following new features:
3737

3838
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
3939
token acquisition for Azure Identity Provider.
40+
4041
- Added the class name to the error message reported when
4142
``BsonClassMapSerializer`` cannot locate a matching creator.
43+
4244
- Added a ``LoggedStages`` field to surface the MQL executed after performing
4345
a LINQ query.
46+
4447
- Added support for overriding the ``"mongodb"`` service name with a custom one
45-
by using the ``srvServiceName`` connection option.
46-
- Improved behavior of bulk write operations to preven enumerating the requests
48+
by using the ``srvServiceName`` connection option. To learn more, see
49+
the :ref:`csharp-connection-options` guide.
50+
51+
- Improved behavior of bulk write operations to prevent enumerating the requests
4752
parameter more than once.
4853

4954
.. _version-2.24:
@@ -106,4 +111,5 @@ The 2.22 driver release includes the following new features:
106111
- Reduced memory allocation when using encryption.
107112
- Added logging messages for server discovery and monitoring (SDAM) events. For more
108113
information on these events, see the
109-
`MongoDB SDAM Logging and Monitoring specification. <https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.rst#log-messages>`__
114+
`MongoDB SDAM Logging and Monitoring specification.
115+
<https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring-logging-and-monitoring.rst#log-messages>`__

0 commit comments

Comments
 (0)