EventProcessorHost.RegisterEventProcessorFactoryAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.ServiceBus.Messaging.IEventProcessorFactory factory);
member this.RegisterEventProcessorFactoryAsync : Microsoft.ServiceBus.Messaging.IEventProcessorFactory -> System.Threading.Tasks.Task
Public Function RegisterEventProcessorFactoryAsync (factory As IEventProcessorFactory) As Task
Parameters
- factory
- IEventProcessorFactory
Instance of IEventProcessorFactory implementation.
Returns
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.ServiceBus.Messaging.IEventProcessorFactory factory, Microsoft.ServiceBus.Messaging.EventProcessorOptions processorOptions);
member this.RegisterEventProcessorFactoryAsync : Microsoft.ServiceBus.Messaging.IEventProcessorFactory * Microsoft.ServiceBus.Messaging.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
EventProcessorOptions to control various aspects of message pump created when ownership is acquired for a particular partition of EventHub.
Returns
A task to indicate EventProcessorHost instance is started.
Applies to
Azure SDK for .NET