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