Skip to content

Commit 52f1d60

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 65c1472 commit 52f1d60

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

318+
.. _csharp-version-2.25:
318319
.. _version-2.25:
319320

320321
What's New in 2.25
@@ -324,12 +325,17 @@ The 2.25 driver release includes the following new features:
324325

325326
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
326327
token acquisition for Azure Identity Provider.
328+
327329
- Added the class name to the error message reported when
328330
``BsonClassMapSerializer`` cannot locate a matching creator.
331+
329332
- Added a ``LoggedStages`` field to surface the MQL executed after performing
330333
a LINQ query.
334+
331335
- Added support for overriding the ``"mongodb"`` service name with a custom one
332-
by using the ``srvServiceName`` connection option.
336+
by using the ``srvServiceName`` connection option. To learn more, see
337+
the :ref:`csharp-connection-options` guide.
338+
333339
- Improved behavior of bulk write operations to prevent enumerating the requests
334340
parameter more than once.
335341

@@ -393,4 +399,5 @@ The 2.22 driver release includes the following new features:
393399
- Reduced memory allocation when using encryption.
394400
- Added logging messages for server discovery and monitoring (SDAM) events. For more
395401
information on these events, see the
396-
`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>`__
402+
`MongoDB SDAM Logging and Monitoring specification.
403+
<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)