CosmosDbContextOptionsBuilder.MaxTcpConnectionsPerEndpoint(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework