Skip to content

EventHubAdapterFactory Methods

Queue adapter factory which allows the PersistentStreamProvider to use EventHub as its backend persistent event queue.

CreateCacheFactory(EventHubStreamCachePressureOptions)

virtual
View source
protected virtual IEventHubQueueCacheFactory CreateCacheFactory(EventHubStreamCachePressureOptions eventHubCacheOptions)
Create a IEventHubQueueCacheFactory. It will create a EventHubQueueCacheFactory by default. User can override this function to return their own implementation of IEventHubQueueCacheFactory, and other customization of IEventHubQueueCacheFactory if they may.

Parameters

eventHubCacheOptionsEventHubStreamCachePressureOptions

CreateReceiver(QueueId)

View source
public IQueueAdapterReceiver CreateReceiver(QueueId queueId)
Creates a queue receiver for the specified queueId

Parameters

queueIdQueueId