你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventHubConsumerGroup.RegisterProcessorFactoryAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RegisterProcessorFactoryAsync(Lease, ICheckpointManager, IEventProcessorFactory)
public System.Threading.Tasks.Task RegisterProcessorFactoryAsync (Microsoft.ServiceBus.Messaging.Lease lease, Microsoft.ServiceBus.Messaging.ICheckpointManager checkpointManager, Microsoft.ServiceBus.Messaging.IEventProcessorFactory eventProcessorFactory);
member this.RegisterProcessorFactoryAsync : Microsoft.ServiceBus.Messaging.Lease * Microsoft.ServiceBus.Messaging.ICheckpointManager * Microsoft.ServiceBus.Messaging.IEventProcessorFactory -> System.Threading.Tasks.Task
Public Function RegisterProcessorFactoryAsync (lease As Lease, checkpointManager As ICheckpointManager, eventProcessorFactory As IEventProcessorFactory) As Task
参数
- lease
- Lease
分区信息。
- checkpointManager
- ICheckpointManager
在调用 时 CheckpointAsync(EventData) 检查指定分区的偏移量。
- eventProcessorFactory
- IEventProcessorFactory
用于创建 实例的 IEventProcessor工厂。
返回
表示异步操作的任务实例。
适用于
RegisterProcessorFactoryAsync(Lease, ICheckpointManager, IEventProcessorFactory, EventProcessorOptions)
public System.Threading.Tasks.Task RegisterProcessorFactoryAsync (Microsoft.ServiceBus.Messaging.Lease lease, Microsoft.ServiceBus.Messaging.ICheckpointManager checkpointManager, Microsoft.ServiceBus.Messaging.IEventProcessorFactory eventProcessorFactory, Microsoft.ServiceBus.Messaging.EventProcessorOptions processorOptions);
member this.RegisterProcessorFactoryAsync : Microsoft.ServiceBus.Messaging.Lease * Microsoft.ServiceBus.Messaging.ICheckpointManager * Microsoft.ServiceBus.Messaging.IEventProcessorFactory * Microsoft.ServiceBus.Messaging.EventProcessorOptions -> System.Threading.Tasks.Task
Public Function RegisterProcessorFactoryAsync (lease As Lease, checkpointManager As ICheckpointManager, eventProcessorFactory As IEventProcessorFactory, processorOptions As EventProcessorOptions) As Task
参数
- lease
- Lease
分区信息。
- checkpointManager
- ICheckpointManager
在调用 时 CheckpointAsync(EventData) 检查指定分区的偏移量。
- eventProcessorFactory
- IEventProcessorFactory
用于创建 实例的 IEventProcessor工厂。
- processorOptions
- EventProcessorOptions
一个 EventProcessorOptions 对象。
返回
返回 Task。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈