EventProcessorClient.UpdateCheckpointAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateCheckpointAsync(String, CheckpointPosition, CancellationToken) |
Creates or updates a checkpoint for a specific partition, identifying a position in the partition's event stream that an event processor should begin reading from. |
UpdateCheckpointAsync(String, Int64, Nullable<Int64>, CancellationToken) |
Creates or updates a checkpoint for a specific partition, identifying a position in the partition's event stream that an event processor should begin reading from. |
UpdateCheckpointAsync(String, CheckpointPosition, CancellationToken)
- Source:
- EventProcessorClient.cs
Creates or updates a checkpoint for a specific partition, identifying a position in the partition's event stream that an event processor should begin reading from.
protected override System.Threading.Tasks.Task UpdateCheckpointAsync (string partitionId, Azure.Messaging.EventHubs.Processor.CheckpointPosition startingPosition, System.Threading.CancellationToken cancellationToken);
override this.UpdateCheckpointAsync : string * Azure.Messaging.EventHubs.Processor.CheckpointPosition * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function UpdateCheckpointAsync (partitionId As String, startingPosition As CheckpointPosition, cancellationToken As CancellationToken) As Task
Parameters
- partitionId
- String
The identifier of the partition the checkpoint is for.
- startingPosition
- CheckpointPosition
The starting position to associate with the checkpoint, indicating that a processor should begin reading from the next event in the stream.
- cancellationToken
- CancellationToken
A CancellationToken instance to signal a request to cancel the operation.
Returns
Applies to
UpdateCheckpointAsync(String, Int64, Nullable<Int64>, CancellationToken)
- Source:
- EventProcessorClient.cs
Creates or updates a checkpoint for a specific partition, identifying a position in the partition's event stream that an event processor should begin reading from.
protected override System.Threading.Tasks.Task UpdateCheckpointAsync (string partitionId, long offset, long? sequenceNumber, System.Threading.CancellationToken cancellationToken);
override this.UpdateCheckpointAsync : string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function UpdateCheckpointAsync (partitionId As String, offset As Long, sequenceNumber As Nullable(Of Long), cancellationToken As CancellationToken) As Task
Parameters
- partitionId
- String
The identifier of the partition the checkpoint is for.
- offset
- Int64
The offset to associate with the checkpoint, intended as informational metadata. This will only be used for positioning if there is no value provided for sequenceNumber
.
The sequence number to associate with the checkpoint, indicating that a processor should begin reading from the next event in the stream.
- cancellationToken
- CancellationToken
A CancellationToken instance to signal a request to cancel the operation.
Returns
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기