你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CheckpointStore.ListOwnershipAsync 方法

定义

请求给定事件中心和使用者组配对的每个协作事件处理器实例之间的分区的所有权分配列表。 此操作在负载均衡期间用于允许处理器发现其他活动协作者,并决定如何最好地平衡它们之间的工作。

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Azure.Messaging.EventHubs.Primitives.EventProcessorPartitionOwnership>> ListOwnershipAsync (string fullyQualifiedNamespace, string eventHubName, string consumerGroup, System.Threading.CancellationToken cancellationToken);
abstract member ListOwnershipAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Azure.Messaging.EventHubs.Primitives.EventProcessorPartitionOwnership>>
Public MustOverride Function ListOwnershipAsync (fullyQualifiedNamespace As String, eventHubName As String, consumerGroup As String, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of EventProcessorPartitionOwnership))

参数

fullyQualifiedNamespace
String

与所有权关联的完全限定的事件中心命名空间。 这可能类似于 {yournamespace}.servicebus.windows.net

eventHubName
String

与所有权关联的特定事件中心的名称,相对于包含它的事件中心命名空间。

consumerGroup
String

与所有权关联的使用者组的名称。

cancellationToken
CancellationToken

一个 CancellationToken 实例,用于向请求发出取消处理信号。 当处理器关闭时,最有可能发生这种情况。

返回

做出负载均衡决策时要考虑的所有权数据集。

适用于