EventProcessorHost.RegisterEventProcessorAsync 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
RegisterEventProcessorAsync<T>() |
This registers IEventProcessor implementation with the host using Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. This also starts the host and causes it to start participating in the partition distribution process. |
RegisterEventProcessorAsync<T>(EventProcessorOptions) |
This registers IEventProcessor implementation with the host using Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. This also starts the host and causes it to start participating in the partition distribution process. |
RegisterEventProcessorAsync<T>()
- Source:
- EventProcessorHost.cs
This registers IEventProcessor implementation with the host using Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. This also starts the host and causes it to start participating in the partition distribution process.
public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> () where T : Microsoft.Azure.EventHubs.Processor.IEventProcessor, new();
member this.RegisterEventProcessorAsync : unit -> System.Threading.Tasks.Task (requires 'T :> Microsoft.Azure.EventHubs.Processor.IEventProcessor and 'T : (new : unit -> 'T))
Public Function RegisterEventProcessorAsync(Of T As {IEventProcessorNew}) () As Task
Type Parameters
- T
Implementation of your application specific IEventProcessor.
Returns
A task to indicate EventProcessorHost instance is started.
Applies to
RegisterEventProcessorAsync<T>(EventProcessorOptions)
- Source:
- EventProcessorHost.cs
This registers IEventProcessor implementation with the host using Microsoft.Azure.EventHubs.Processor.DefaultEventProcessorFactory`1. This also starts the host and causes it to start participating in the partition distribution process.
public System.Threading.Tasks.Task RegisterEventProcessorAsync<T> (Microsoft.Azure.EventHubs.Processor.EventProcessorOptions processorOptions) where T : Microsoft.Azure.EventHubs.Processor.IEventProcessor, new();
member this.RegisterEventProcessorAsync : Microsoft.Azure.EventHubs.Processor.EventProcessorOptions -> System.Threading.Tasks.Task (requires 'T :> Microsoft.Azure.EventHubs.Processor.IEventProcessor and 'T : (new : unit -> 'T))
Public Function RegisterEventProcessorAsync(Of T As {IEventProcessorNew}) (processorOptions As EventProcessorOptions) As Task
Type Parameters
- T
Implementation of your application specific IEventProcessor.
Parameters
- 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
A task to indicate EventProcessorHost instance is started.
Applies to
Azure SDK for .NET