Skip to content

Commit 3c66369

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 d0881ef commit 3c66369

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
@@ -58,6 +58,7 @@ The 2.26 driver release includes the following new features:
5858
- Implemented read and write retries to other ``mongos`` instances when
5959
possible.
6060

61+
.. _csharp-version-2.25:
6162
.. _version-2.25:
6263

6364
What's New in 2.25
@@ -67,12 +68,17 @@ The 2.25 driver release includes the following new features:
6768

6869
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
6970
token acquisition for Azure Identity Provider.
71+
7072
- Added the class name to the error message reported when
7173
``BsonClassMapSerializer`` cannot locate a matching creator.
74+
7275
- Added a ``LoggedStages`` field to surface the MQL executed after performing
7376
a LINQ query.
77+
7478
- Added support for overriding the ``"mongodb"`` service name with a custom one
75-
by using the ``srvServiceName`` connection option.
79+
by using the ``srvServiceName`` connection option. To learn more, see
80+
the :ref:`csharp-connection-options` guide.
81+
7682
- Improved behavior of bulk write operations to prevent enumerating the requests
7783
parameter more than once.
7884

@@ -136,4 +142,5 @@ The 2.22 driver release includes the following new features:
136142
- Reduced memory allocation when using encryption.
137143
- Added logging messages for server discovery and monitoring (SDAM) events. For more
138144
information on these events, see the
139-
`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>`__
145+
`MongoDB SDAM Logging and Monitoring specification.
146+
<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)