Skip to content

Commit 9bbd758

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 3ffe9cc commit 9bbd758

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ The 2.26 driver release includes the following new features:
8585
- Implemented read and write retries to other ``mongos`` instances when
8686
possible.
8787

88+
.. _csharp-version-2.25:
8889
.. _version-2.25:
8990

9091
What's New in 2.25
@@ -94,12 +95,17 @@ The 2.25 driver release includes the following new features:
9495

9596
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
9697
token acquisition for Azure Identity Provider.
98+
9799
- Added the class name to the error message reported when
98100
``BsonClassMapSerializer`` cannot locate a matching creator.
101+
99102
- Added a ``LoggedStages`` field to surface the MQL executed after performing
100103
a LINQ query.
104+
101105
- Added support for overriding the ``"mongodb"`` service name with a custom one
102-
by using the ``srvServiceName`` connection option.
106+
by using the ``srvServiceName`` connection option. To learn more, see
107+
the :ref:`csharp-connection-options` guide.
108+
103109
- Improved behavior of bulk write operations to prevent enumerating the requests
104110
parameter more than once.
105111

@@ -163,4 +169,5 @@ The 2.22 driver release includes the following new features:
163169
- Reduced memory allocation when using encryption.
164170
- Added logging messages for server discovery and monitoring (SDAM) events. For more
165171
information on these events, see the
166-
`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>`__
172+
`MongoDB SDAM Logging and Monitoring specification.
173+
<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)