Share via


CosmosDbContextOptionsBuilder.MaxRequestsPerTcpConnection(Int32) Method

Definition

Configures the number of requests allowed simultaneously over a single TCP connection. When more requests are in flight simultaneously, the direct/TCP client will open additional connections.

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

Parameters

requestLimit
Int32

The number of requests allowed simultaneously over a single TCP connection.

Returns

Remarks

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

Applies to