Skip to content

Commit 690c4e4

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 f4ff5fb commit 690c4e4

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
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

+9-2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ The 2.26 driver release includes the following new features:
107107
- Implemented read and write retries to other ``mongos`` instances when
108108
possible.
109109

110+
.. _csharp-version-2.25:
110111
.. _version-2.25:
111112

112113
What's New in 2.25
@@ -116,12 +117,17 @@ The 2.25 driver release includes the following new features:
116117

117118
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
118119
token acquisition for Azure Identity Provider.
120+
119121
- Added the class name to the error message reported when
120122
``BsonClassMapSerializer`` cannot locate a matching creator.
123+
121124
- Added a ``LoggedStages`` field to surface the MQL executed after performing
122125
a LINQ query.
126+
123127
- Added support for overriding the ``"mongodb"`` service name with a custom one
124-
by using the ``srvServiceName`` connection option.
128+
by using the ``srvServiceName`` connection option. To learn more, see
129+
the :ref:`csharp-connection-options` guide.
130+
125131
- Improved behavior of bulk write operations to prevent enumerating the requests
126132
parameter more than once.
127133

@@ -185,4 +191,5 @@ The 2.22 driver release includes the following new features:
185191
- Reduced memory allocation when using encryption.
186192
- Added logging messages for server discovery and monitoring (SDAM) events. For more
187193
information on these events, see the
188-
`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>`__
194+
`MongoDB SDAM Logging and Monitoring specification.
195+
<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)