Skip to content

Commit f4d18a2

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

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

363+
.. _csharp-version-2.25:
363364
.. _version-2.25:
364365

365366
What's New in 2.25
@@ -369,12 +370,17 @@ The 2.25 driver release includes the following new features:
369370

370371
- Added support for the ``MONGODB-OIDC`` authentication mechanism and automatic
371372
token acquisition for Azure Identity Provider.
373+
372374
- Added the class name to the error message reported when
373375
``BsonClassMapSerializer`` cannot locate a matching creator.
376+
374377
- Added a ``LoggedStages`` field to surface the MQL executed after performing
375378
a LINQ query.
379+
376380
- Added support for overriding the ``"mongodb"`` service name with a custom one
377-
by using the ``srvServiceName`` connection option.
381+
by using the ``srvServiceName`` connection option. To learn more, see
382+
the :ref:`csharp-connection-options` guide.
383+
378384
- Improved behavior of bulk write operations to prevent enumerating the requests
379385
parameter more than once.
380386

@@ -438,4 +444,5 @@ The 2.22 driver release includes the following new features:
438444
- Reduced memory allocation when using encryption.
439445
- Added logging messages for server discovery and monitoring (SDAM) events. For more
440446
information on these events, see the
441-
`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>`__
447+
`MongoDB SDAM Logging and Monitoring specification.
448+
<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)