Skip to content

Commit 3f5638c

Browse files
authored
DOCSP-37452: srvServiceName cxn opt (#593)
* DOCSP-37452: srvServiceName cxn opt * fix
1 parent 518264b commit 3f5638c

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

source/fundamentals/connection/connection-options.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,20 @@ relevant options.
402402
| **Default**: ``0``
403403
| **Connection URI Example**: ``srvMaxHosts=3``
404404

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

source/whats-new.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Learn what's new in:
3030
* :ref:`Version 2.28 <csharp-version-2.28>`
3131
* :ref:`Version 2.27 <csharp-version-2.27>`
3232
* :ref:`Version 2.26 <csharp-version-2.26>`
33-
* :ref:`Version 2.25 <version-2.25>`
33+
* :ref:`Version 2.25 <csharp-version-2.25>`
3434

3535
.. _upcoming-breaking-changes:
3636

@@ -424,6 +424,7 @@ The 2.26 driver release includes the following new features:
424424
- Implemented read and write retries to other ``mongos`` instances when
425425
possible.
426426

427+
.. _csharp-version-2.25:
427428
.. _version-2.25:
428429

429430
What's New in 2.25
@@ -433,11 +434,16 @@ The 2.25 driver release includes the following new features:
433434

434435
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
435436
token acquisition for Azure Identity Provider.
437+
436438
- Added the class name to the error message reported when
437439
``BsonClassMapSerializer`` cannot locate a matching creator.
440+
438441
- Added a ``LoggedStages`` field to surface the MQL executed after performing
439442
a LINQ query.
443+
440444
- Added support for overriding the ``"mongodb"`` service name with a custom one
441-
by using the ``srvServiceName`` connection option.
445+
by using the ``srvServiceName`` connection option. To learn more, see
446+
the :ref:`csharp-connection-options` guide.
447+
442448
- Improved behavior of bulk write operations to prevent enumerating the requests
443449
parameter more than once.

0 commit comments

Comments
 (0)