共用方式為


EventHubQueueCacheFactory.AddCachePressureMonitors 方法

定義

用來設定 EventHubQueueCache 快取壓力監視器的函式。 使用者可以覆寫此函式,以提供更多快取壓力監視器的自訂

protected virtual void AddCachePressureMonitors (Orleans.Streaming.EventHubs.IEventHubQueueCache cache, Orleans.Configuration.EventHubStreamCachePressureOptions providerOptions, Microsoft.Extensions.Logging.ILogger cacheLogger);
abstract member AddCachePressureMonitors : Orleans.Streaming.EventHubs.IEventHubQueueCache * Orleans.Configuration.EventHubStreamCachePressureOptions * Microsoft.Extensions.Logging.ILogger -> unit
override this.AddCachePressureMonitors : Orleans.Streaming.EventHubs.IEventHubQueueCache * Orleans.Configuration.EventHubStreamCachePressureOptions * Microsoft.Extensions.Logging.ILogger -> unit
Protected Overridable Sub AddCachePressureMonitors (cache As IEventHubQueueCache, providerOptions As EventHubStreamCachePressureOptions, cacheLogger As ILogger)

參數

cacheLogger
ILogger

適用於