次の方法で共有


EventHubConsumerGroup.RegisterProcessorAsync メソッド

定義

オーバーロード

RegisterProcessorAsync<T>(Lease, ICheckpointManager)

RegisterProcessor<T>(Lease, ICheckpointManager) の非同期バージョン。

RegisterProcessorAsync<T>(Lease, ICheckpointManager, EventProcessorOptions)

RegisterProcessor<T>(Lease, ICheckpointManager, EventProcessorOptions) の非同期バージョン。

RegisterProcessorAsync<T>(Lease, ICheckpointManager)

RegisterProcessor<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 作成方法を制御できる クラスを実装します。

適用対象