Skip to content

Commit 9441541

Browse files
committed
DOCSP-37452: srvServiceName cxn opt (#593)
* DOCSP-37452: srvServiceName cxn opt * fix (cherry picked from commit 3f5638c)
1 parent cd72abd commit 9441541

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
@@ -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: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Learn what's new in:
2828
* :ref:`Version 2.28 <csharp-version-2.28>`
2929
* :ref:`Version 2.27 <csharp-version-2.27>`
3030
* :ref:`Version 2.26 <csharp-version-2.26>`
31-
* :ref:`Version 2.25 <version-2.25>`
31+
* :ref:`Version 2.25 <csharp-version-2.25>`
3232

3333
.. _upcoming-breaking-changes:
3434

@@ -411,6 +411,7 @@ The 2.26 driver release includes the following new features:
411411
- Implemented read and write retries to other ``mongos`` instances when
412412
possible.
413413

414+
.. _csharp-version-2.25:
414415
.. _version-2.25:
415416

416417
What's New in 2.25
@@ -420,11 +421,16 @@ The 2.25 driver release includes the following new features:
420421

421422
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
422423
token acquisition for Azure Identity Provider.
424+
423425
- Added the class name to the error message reported when
424426
``BsonClassMapSerializer`` cannot locate a matching creator.
427+
425428
- Added a ``LoggedStages`` field to surface the MQL executed after performing
426429
a LINQ query.
430+
427431
- Added support for overriding the ``"mongodb"`` service name with a custom one
428-
by using the ``srvServiceName`` connection option.
432+
by using the ``srvServiceName`` connection option. To learn more, see
433+
the :ref:`csharp-connection-options` guide.
434+
429435
- Improved behavior of bulk write operations to prevent enumerating the requests
430436
parameter more than once.

0 commit comments

Comments
 (0)