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