CosmosDbContextOptionsBuilder.MaxTcpConnectionsPerEndpoint(Int32) Yöntem

Tanım

Veritabanı arka ucunda her bir veritabanına açılabilir en fazla TCP Cosmos sayısını yapılandırıyor. MaxRequestsPerTcpConnection ile birlikte, bu ayar aynı anda tek bir Cosmos DB arka ucuna (MaxRequestsPerTcpConnection x MaxTcpConnectionPerEndpoint) gönderilen istek sayısını sınırlar.

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

Parametreler

connectionLimit
Int32

Veritabanı arka ucundan her bir veritabanına açılabilir Cosmos TCP bağlantısı sayısı.

Döndürülenler

CosmosDbContextOptionsBuilder

Açıklamalar

Daha fazla bilgi için bkz. DbContextOptionskullanma ve Cosmos db ile Azure EF Core db'ye erişme.

Şunlara uygulanır