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)
- Source:
- EventProcessorHost.cs
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
A task to indicate EventProcessorHost instance is started.
Applies to
RegisterEventProcessorFactoryAsync(IEventProcessorFactory, EventProcessorOptions)
- Source:
- EventProcessorHost.cs
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
A task to indicate EventProcessorHost instance is started.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기