你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobCheckpointStore.GetCheckpointAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请求特定分区的检查点信息,使事件处理程序能够继续从流中的下一个事件读取。
public override System.Threading.Tasks.Task<Azure.Messaging.EventHubs.Primitives.EventProcessorCheckpoint> GetCheckpointAsync (string fullyQualifiedNamespace, string eventHubName, string consumerGroup, string partitionId, System.Threading.CancellationToken cancellationToken);
override this.GetCheckpointAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Messaging.EventHubs.Primitives.EventProcessorCheckpoint>
Public Overrides Function GetCheckpointAsync (fullyQualifiedNamespace As String, eventHubName As String, consumerGroup As String, partitionId As String, cancellationToken As CancellationToken) As Task(Of EventProcessorCheckpoint)
参数
- fullyQualifiedNamespace
- String
与所有权关联的完全限定的事件中心命名空间。 这可能类似于 {yournamespace}.servicebus.windows.net
。
- eventHubName
- String
与所有权关联的特定事件中心的名称,相对于包含它的事件中心命名空间。
- consumerGroup
- String
与检查点关联的使用者组的名称。
- partitionId
- String
要为其读取检查点的分区的标识符。
- cancellationToken
- CancellationToken
一个 CancellationToken 实例,用于向请求发出取消操作的信号。
返回
EventProcessorCheckpoint如果为请求的分区找到了检查点,则为 实例;否则为 null
。