Skip to content

Commit 1cbabc7

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 f7bb34f commit 1cbabc7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

source/fundamentals/connection/connection-options.txt

+14
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,20 @@ relevant options.
408408
| **Default**: ``0``
409409
| **Connection URI Example**: ``srvMaxHosts=3``
410410

411+
* - **SrvServiceName**
412+
- | The service name of the `SRV resource records <https://www.rfc-editor.org/rfc/rfc2782>`__
413+
| that the driver retrieves to construct your seedlist. This
414+
| property overrides the default service name for SRV lookup in
415+
| discovery and polling.
416+
|
417+
| You can use this property only if the connection-string scheme is set
418+
| to ``ConnectionStringScheme.MongoDBPlusSrv``. You cannot use it when connecting
419+
| to a replica set.
420+
|
421+
| **Data Type**: {+string-data-type+}
422+
| **Default**: ``"mongodb"``
423+
| **Connection URI Example**: ``srvServiceName="customname"``
424+
411425
* - **SslSettings**
412426
- | TLS/SSL options, including client certificates, revocation handling, and
413427
| enabled and disabled TLS/SSL protocols.

source/whats-new.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ The 2.26 driver release includes the following new features:
134134
- Implemented read and write retries to other ``mongos`` instances when
135135
possible.
136136

137+
.. _csharp-version-2.25:
137138
.. _version-2.25:
138139

139140
What's New in 2.25
@@ -143,12 +144,17 @@ The 2.25 driver release includes the following new features:
143144

144145
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
145146
token acquisition for Azure Identity Provider.
147+
146148
- Added the class name to the error message reported when
147149
``BsonClassMapSerializer`` cannot locate a matching creator.
150+
148151
- Added a ``LoggedStages`` field to surface the MQL executed after performing
149152
a LINQ query.
153+
150154
- Added support for overriding the ``"mongodb"`` service name with a custom one
151-
by using the ``srvServiceName`` connection option.
155+
by using the ``srvServiceName`` connection option. To learn more, see
156+
the :ref:`csharp-connection-options` guide.
157+
152158
- Improved behavior of bulk write operations to prevent enumerating the requests
153159
parameter more than once.
154160

0 commit comments

Comments
 (0)