EventProcessorHost.RegisterEventProcessorFactoryAsync Method

Definition

Overloads

RegisterEventProcessorFactoryAsync(IEventProcessorFactory)

This registers IEventProcessorFactory implementation with the host which is used to create an instance of IEventProcessor when it takes ownership of a partition. This also starts the host and causes it to start participating in the partition distribution process.

RegisterEventProcessorFactoryAsync(IEventProcessorFactory, EventProcessorOptions)

This registers IEventProcessorFactory implementation with the host which is used to create an instance of IEventProcessor when it takes ownership of a partition. This also starts the host and causes it to start participating in the partition distribution process.

RegisterEventProcessorFactoryAsync(IEventProcessorFactory)

This registers IEventProcessorFactory implementation with the host which is used to create an instance of IEventProcessor when it takes ownership of a partition. This also starts the host and causes it to start participating in the partition distribution process.

public System.Threading.Tasks.Task RegisterEventProcessorFactoryAsync (Microsoft.Azure.EventHubs.Processor.IEventProcessorFactory factory);
member this.RegisterEventProcessorFactoryAsync : Microsoft.Azure.EventHubs.Processor.IEventProcessorFactory -> System.Threading.Tasks.Task
Public Function RegisterEventProcessorFactoryAsync (factory As IEventProcessorFactory) As Task

Parameters

factory
IEventProcessorFactory

Instance of IEventProcessorFactory implementation.

Returns

Task

A task to indicate EventProcessorHost instance is started.

Applies to

RegisterEventProcessorFactoryAsync(IEventProcessorFactory, EventProcessorOptions)

This registers IEventProcessorFactory implementation with the host which is used to create an instance of IEventProcessor when it takes ownership of a partition. This also starts the host and causes it to start participating in the partition distribution process.

public System.Threading.Tasks.Task RegisterEventProcessorFactoryAsync (Microsoft.Azure.EventHubs.Processor.IEventProcessorFactory factory, Microsoft.Azure.EventHubs.Processor.EventProcessorOptions processorOptions);
member this.RegisterEventProcessorFactoryAsync : Microsoft.Azure.EventHubs.Processor.IEventProcessorFactory * Microsoft.Azure.EventHubs.Processor.EventProcessorOptions -> System.Threading.Tasks.Task
Public Function RegisterEventProcessorFactoryAsync (factory As IEventProcessorFactory, processorOptions As EventProcessorOptions) As Task

Parameters

factory
IEventProcessorFactory

Instance of IEventProcessorFactory implementation.

processorOptions
EventProcessorOptions

Microsoft.Azure.EventHubs.Processor.EventProcessorHost.EventProcessorOptions to control various aspects of message pump created when ownership is acquired for a particular partition of EventHub.

Returns

Task

A task to indicate EventProcessorHost instance is started.

Applies to