次の方法で共有


EventHubConsumerGroup.RegisterProcessor メソッド

定義

オーバーロード

RegisterProcessor<T>(Lease, ICheckpointManager, EventProcessorOptions)

から指定した PartitionIdIEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 ICheckpointManagerを使用してメッセージ オフセットをチェックポイント処理するイベント プロセッサを作成します。

RegisterProcessor<T>(Lease, ICheckpointManager)

から指定した PartitionIdIEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 ICheckpointManagerを使用してメッセージ オフセットをチェックポイント処理するイベント プロセッサを作成します。

RegisterProcessor<T>(Lease, ICheckpointManager, EventProcessorOptions)

から指定した PartitionIdIEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 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)

から指定した PartitionIdIEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 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 作成方法を制御できる クラスを実装します。

適用対象