Sdílet prostřednictvím


CosmosDbContextOptionsBuilder.MaxTcpConnectionsPerEndpoint(Int32) Metoda

Definice

Konfiguruje maximální počet připojení TCP, která se můžou otevřít pro každý back-end cosmos DB. Společně s parametrem MaxRequestsPerTcpConnection toto nastavení omezuje počet požadavků, které se současně odesílají do jednoho back-endu Cosmos DB (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

Parametry

connectionLimit
Int32

Maximální počet připojení TCP, která se můžou otevřít pro každý back-end Cosmos DB.

Návraty

Poznámky

Další informace a příklady najdete v tématech Použití DbContextOptions a Přístup ke službě Azure Cosmos DB s EF Core .

Platí pro