CosmosDbContextOptionsBuilder.MaxRequestsPerTcpConnection(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 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
Entity Framework