Container.ChangeFeedStreamHandlerWithManualCheckpoint 代理人

定義

手動チェックポイントを使用して、実行中の変更を ChangeFeedProcessor 受け取るデリゲート。

public delegate System.Threading.Tasks.Task Container.ChangeFeedStreamHandlerWithManualCheckpoint(ChangeFeedProcessorContext context, Stream changes, Func<Task> checkpointAsync, CancellationToken cancellationToken);
type Container.ChangeFeedStreamHandlerWithManualCheckpoint = delegate of ChangeFeedProcessorContext * Stream * Func<Task> * CancellationToken -> Task
Public Delegate Function Container.ChangeFeedStreamHandlerWithManualCheckpoint(context As ChangeFeedProcessorContext, changes As Stream, checkpointAsync As Func(Of Task), cancellationToken As CancellationToken) As Task 

パラメーター

context
ChangeFeedProcessorContext

変更に関連するコンテキスト。

changes
Stream

発生した変更。

checkpointAsync
Func<Task>

リースの進行状況に関する非同期チェックポイントを表すタスク。

cancellationToken
CancellationToken

インスタンスの現在のキャンセル状態 ChangeFeedProcessor を表すキャンセル トークン。

戻り値

Task変更で実行される非同期操作を表す 。

(ChangeFeedProcessorContext context, Stream stream, Func<Task> checkpointAsync, CancellationToken cancellationToken) =>
{
    // consume stream

    // On certain condition, we can checkpoint
    await checkpointAsync();
}

適用対象