Skip to content

Commit 9ff0ba0

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 3b56f6d commit 9ff0ba0

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
@@ -401,6 +401,20 @@ relevant options.
401401
| **Default**: ``0``
402402
| **Connection URI Example**: ``srvMaxHosts=3``
403403

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

source/whats-new.txt

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

268+
.. _csharp-version-2.25:
268269
.. _version-2.25:
269270

270271
What's New in 2.25
@@ -274,12 +275,17 @@ The 2.25 driver release includes the following new features:
274275

275276
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
276277
token acquisition for Azure Identity Provider.
278+
277279
- Added the class name to the error message reported when
278280
``BsonClassMapSerializer`` cannot locate a matching creator.
281+
279282
- Added a ``LoggedStages`` field to surface the MQL executed after performing
280283
a LINQ query.
284+
281285
- Added support for overriding the ``"mongodb"`` service name with a custom one
282-
by using the ``srvServiceName`` connection option.
286+
by using the ``srvServiceName`` connection option. To learn more, see
287+
the :ref:`csharp-connection-options` guide.
288+
283289
- Improved behavior of bulk write operations to prevent enumerating the requests
284290
parameter more than once.
285291

@@ -343,4 +349,5 @@ The 2.22 driver release includes the following new features:
343349
- Reduced memory allocation when using encryption.
344350
- Added logging messages for server discovery and monitoring (SDAM) events. For more
345351
information on these events, see the
346-
`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>`__
352+
`MongoDB SDAM Logging and Monitoring specification.
353+
<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)