Skip to content

Commit 5ef4174

Browse files
committed
DOCSP-37452: srvServiceName cxn opt
1 parent 611a739 commit 5ef4174

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,16 @@ The 2.25 driver release includes the following new features:
415415

416416
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
417417
token acquisition for Azure Identity Provider.
418+
418419
- Added the class name to the error message reported when
419420
``BsonClassMapSerializer`` cannot locate a matching creator.
421+
420422
- Added a ``LoggedStages`` field to surface the MQL executed after performing
421423
a LINQ query.
424+
422425
- Added support for overriding the ``"mongodb"`` service name with a custom one
423-
by using the ``srvServiceName`` connection option.
426+
by using the ``srvServiceName`` connection option. To learn more, see
427+
the :ref:`csharp-connection-options` guide.
428+
424429
- Improved behavior of bulk write operations to prevent enumerating the requests
425430
parameter more than once.

0 commit comments

Comments
 (0)