LeaseBasedQueueBalancer 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LeaseBasedQueueBalancer(String, LeaseBasedQueueBalancerOptions, ILeaseProvider, ITimerRegistry, IServiceProvider, ILoggerFactory)
初始化 LeaseBasedQueueBalancer 類別的新實例。
public LeaseBasedQueueBalancer (string name, Orleans.Configuration.LeaseBasedQueueBalancerOptions options, Orleans.LeaseProviders.ILeaseProvider leaseProvider, Orleans.Timers.ITimerRegistry timerRegistry, IServiceProvider services, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Orleans.Streams.LeaseBasedQueueBalancer : string * Orleans.Configuration.LeaseBasedQueueBalancerOptions * Orleans.LeaseProviders.ILeaseProvider * Orleans.Timers.ITimerRegistry * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Orleans.Streams.LeaseBasedQueueBalancer
Public Sub New (name As String, options As LeaseBasedQueueBalancerOptions, leaseProvider As ILeaseProvider, timerRegistry As ITimerRegistry, services As IServiceProvider, loggerFactory As ILoggerFactory)
參數
- name
- String
名稱。
- options
- LeaseBasedQueueBalancerOptions
選項。
- leaseProvider
- ILeaseProvider
租用提供者。
- timerRegistry
- ITimerRegistry
定時器登錄。
- services
- IServiceProvider
服務。
- loggerFactory
- ILoggerFactory
記錄器處理站。
適用於
LeaseBasedQueueBalancer(String, LeaseBasedQueueBalancerOptions, ILeaseProvider, IServiceProvider, ILoggerFactory, TimeProvider)
LeaseBasedQueueBalancer。 此平衡器支援叢集自動調整案例、非預期的伺服器失敗案例中的佇列平衡,並嘗試盡可能支援理想的散發。
public LeaseBasedQueueBalancer (string name, Orleans.Configuration.LeaseBasedQueueBalancerOptions options, Orleans.LeaseProviders.ILeaseProvider leaseProvider, IServiceProvider services, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, TimeProvider timeProvider);
new Orleans.Streams.LeaseBasedQueueBalancer : string * Orleans.Configuration.LeaseBasedQueueBalancerOptions * Orleans.LeaseProviders.ILeaseProvider * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory * TimeProvider -> Orleans.Streams.LeaseBasedQueueBalancer
Public Sub New (name As String, options As LeaseBasedQueueBalancerOptions, leaseProvider As ILeaseProvider, services As IServiceProvider, loggerFactory As ILoggerFactory, timeProvider As TimeProvider)
參數
- name
- String
名稱。
- options
- LeaseBasedQueueBalancerOptions
選項。
- leaseProvider
- ILeaseProvider
租用提供者。
- services
- IServiceProvider
服務。
- loggerFactory
- ILoggerFactory
記錄器處理站。
- timeProvider
- TimeProvider
備註
初始化 LeaseBasedQueueBalancer 類別的新實例。
適用於
LeaseBasedQueueBalancer(String, LeaseBasedQueueBalancerOptions, IServiceProvider, ISiloStatusOracle, IDeploymentConfiguration, ILoggerFactory)
構造 函數
public LeaseBasedQueueBalancer (string name, Orleans.Configuration.LeaseBasedQueueBalancerOptions options, IServiceProvider serviceProvider, Orleans.Runtime.ISiloStatusOracle siloStatusOracle, Orleans.Streams.IDeploymentConfiguration deploymentConfig, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Orleans.Streams.LeaseBasedQueueBalancer : string * Orleans.Configuration.LeaseBasedQueueBalancerOptions * IServiceProvider * Orleans.Runtime.ISiloStatusOracle * Orleans.Streams.IDeploymentConfiguration * Microsoft.Extensions.Logging.ILoggerFactory -> Orleans.Streams.LeaseBasedQueueBalancer
Public Sub New (name As String, options As LeaseBasedQueueBalancerOptions, serviceProvider As IServiceProvider, siloStatusOracle As ISiloStatusOracle, deploymentConfig As IDeploymentConfiguration, loggerFactory As ILoggerFactory)
參數
- name
- String
- options
- LeaseBasedQueueBalancerOptions
- serviceProvider
- IServiceProvider
- siloStatusOracle
- ISiloStatusOracle
- deploymentConfig
- IDeploymentConfiguration
- loggerFactory
- ILoggerFactory