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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기