EventHubConsumerGroup.RegisterProcessor メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
RegisterProcessor<T>(Lease, ICheckpointManager, EventProcessorOptions) |
から指定した PartitionId の IEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 ICheckpointManagerを使用してメッセージ オフセットをチェックポイント処理するイベント プロセッサを作成します。 |
RegisterProcessor<T>(Lease, ICheckpointManager) |
から指定した PartitionId の IEventProcessor Event Hubs からのイベントの使用を開始するために、 の実装をOffset登録します。 このオーバーロードを使用して、 のカスタム実装 ICheckpointManagerを使用してメッセージ オフセットをチェックポイント処理するイベント プロセッサを作成します。 |
RegisterProcessor<T>(Lease, ICheckpointManager, EventProcessorOptions)
から指定した PartitionId の IEventProcessor 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)
から指定した PartitionId の IEventProcessor 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 作成方法を制御できる クラスを実装します。
適用対象
Azure SDK for .NET