EventHubConsumerGroup.RegisterProcessorAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
RegisterProcessorAsync<T>(Lease, ICheckpointManager)
public System.Threading.Tasks.Task RegisterProcessorAsync<T> (Microsoft.ServiceBus.Messaging.Lease lease, Microsoft.ServiceBus.Messaging.ICheckpointManager checkpointManager) where T : Microsoft.ServiceBus.Messaging.IEventProcessor;
member this.RegisterProcessorAsync : Microsoft.ServiceBus.Messaging.Lease * Microsoft.ServiceBus.Messaging.ICheckpointManager -> System.Threading.Tasks.Task (requires 'T :> Microsoft.ServiceBus.Messaging.IEventProcessor)
Public Function RegisterProcessorAsync(Of T As IEventProcessor) (lease As Lease, checkpointManager As ICheckpointManager) As Task
型パラメーター
- T
IEventProcessor の実装です。
パラメーター
- lease
- Lease
パーティション情報。
- checkpointManager
- ICheckpointManager
が呼び出されたときに、指定されたパーティションのオフセットを CheckpointAsync(EventData) チェックポイントします。
戻り値
非同期操作を表すタスク インスタンス。
適用対象
RegisterProcessorAsync<T>(Lease, ICheckpointManager, EventProcessorOptions)
public System.Threading.Tasks.Task RegisterProcessorAsync<T> (Microsoft.ServiceBus.Messaging.Lease lease, Microsoft.ServiceBus.Messaging.ICheckpointManager checkpointManager, Microsoft.ServiceBus.Messaging.EventProcessorOptions processorOptions) where T : Microsoft.ServiceBus.Messaging.IEventProcessor;
member this.RegisterProcessorAsync : Microsoft.ServiceBus.Messaging.Lease * Microsoft.ServiceBus.Messaging.ICheckpointManager * Microsoft.ServiceBus.Messaging.EventProcessorOptions -> System.Threading.Tasks.Task (requires 'T :> Microsoft.ServiceBus.Messaging.IEventProcessor)
Public Function RegisterProcessorAsync(Of T As IEventProcessor) (lease As Lease, checkpointManager As ICheckpointManager, processorOptions As EventProcessorOptions) As Task
型パラメーター
- T
IEventProcessor の実装です。
パラメーター
- lease
- Lease
パーティション情報。
- checkpointManager
- ICheckpointManager
が呼び出されたときに、指定されたパーティションのオフセットを CheckpointAsync(EventData) チェックポイントします。
- processorOptions
- EventProcessorOptions
EventProcessorOptions オブジェクト。
戻り値
Task を返します。
注釈
より高度な IEventProcessor 作成を実行するには、イベント プロセッサの IEventProcessorFactory 作成方法を制御できる クラスを実装します。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET