你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubConsumerGroup.RegisterProcessorFactory 方法

定义

重载

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 对象。

适用于