Skip to content

Commit

Permalink
Cosmos Direct Mode - Fix Rediscovery Default (#4817)
Browse files Browse the repository at this point in the history
* add cosmos direct code configuration options

* keep existing behavior for Cosmos Direct rediscovery

* Delete docs/rest/pers-env.http

* Delete docs/rest/export-test.http
  • Loading branch information
mikaelweave authored Feb 12, 2025
1 parent 4550de9 commit 5d4e7cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public class CosmosDataStoreConfiguration
// Default value is PortReuseMode.ReuseUnicastPort, recommended value is PortReuseMode.ReuseUnicastPort. Leaving null to use the SDK default.
public PortReuseMode? PortReuseMode { get; set; }

// Default value is true, recommended value is true. Leaving null to use the SDK default.
public bool EnableTcpConnectionEndpointRediscovery { get; set; }
// Default value is true, recommended value is true. Value is true for explicit configuration.
public bool EnableTcpConnectionEndpointRediscovery { get; set; } = true;

public ConsistencyLevel? DefaultConsistencyLevel { get; set; }

Expand Down

0 comments on commit 5d4e7cd

Please sign in to comment.