Skip to content

Commit adc87a5

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 3e1b7aa commit adc87a5

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
@@ -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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The 2.26 driver release includes the following new features:
125125
- Implemented read and write retries to other ``mongos`` instances when
126126
possible.
127127

128+
.. _csharp-version-2.25:
128129
.. _version-2.25:
129130

130131
What's New in 2.25
@@ -134,12 +135,17 @@ The 2.25 driver release includes the following new features:
134135

135136
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
136137
token acquisition for Azure Identity Provider.
138+
137139
- Added the class name to the error message reported when
138140
``BsonClassMapSerializer`` cannot locate a matching creator.
141+
139142
- Added a ``LoggedStages`` field to surface the MQL executed after performing
140143
a LINQ query.
144+
141145
- Added support for overriding the ``"mongodb"`` service name with a custom one
142-
by using the ``srvServiceName`` connection option.
146+
by using the ``srvServiceName`` connection option. To learn more, see
147+
the :ref:`csharp-connection-options` guide.
148+
143149
- Improved behavior of bulk write operations to prevent enumerating the requests
144150
parameter more than once.
145151

@@ -203,4 +209,5 @@ The 2.22 driver release includes the following new features:
203209
- Reduced memory allocation when using encryption.
204210
- Added logging messages for server discovery and monitoring (SDAM) events. For more
205211
information on these events, see the
206-
`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>`__
212+
`MongoDB SDAM Logging and Monitoring specification.
213+
<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)