CosmosDbContextOptionsBuilder.MaxTcpConnectionsPerEndpoint(Int32) Method

Definition

Configures the maximum number of TCP connections that may be opened to each Cosmos DB back-end. Together with MaxRequestsPerTcpConnection, this setting limits the number of requests that are simultaneously sent to a single Cosmos DB back-end (MaxRequestsPerTcpConnection x MaxTcpConnectionPerEndpoint).

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder MaxTcpConnectionsPerEndpoint (int connectionLimit);
abstract member MaxTcpConnectionsPerEndpoint : int -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.MaxTcpConnectionsPerEndpoint : int -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Public Overridable Function MaxTcpConnectionsPerEndpoint (connectionLimit As Integer) As CosmosDbContextOptionsBuilder

Parameters

connectionLimit
Int32

The maximum number of TCP connections that may be opened to each Cosmos DB back-end.

Returns

Remarks

See Using DbContextOptions, and Accessing Azure Cosmos DB with EF Core for more information and examples.

Applies to