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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for