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

FabricClient.QueryClient.GetClusterLoadInformationAsync 方法

定义

重载

GetClusterLoadInformationAsync()

获取群集负载信息。

GetClusterLoadInformationAsync(TimeSpan, CancellationToken)

获取群集负载信息。

GetClusterLoadInformationAsync()

获取群集负载信息。

public System.Threading.Tasks.Task<System.Fabric.Query.ClusterLoadInformation> GetClusterLoadInformationAsync ();
member this.GetClusterLoadInformationAsync : unit -> System.Threading.Tasks.Task<System.Fabric.Query.ClusterLoadInformation>
Public Function GetClusterLoadInformationAsync () As Task(Of ClusterLoadInformation)

返回

表示异步查询操作的任务。

请参阅 ClusterLoadInformation

返回的任务将群集的负载信息作为 ClusterLoadInformation包含。

例外

此操作的超时时间为 60 秒。

有关处理常见 FabricClient 故障,请参阅 https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions

适用于

GetClusterLoadInformationAsync(TimeSpan, CancellationToken)

获取群集负载信息。

public System.Threading.Tasks.Task<System.Fabric.Query.ClusterLoadInformation> GetClusterLoadInformationAsync (TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetClusterLoadInformationAsync : TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Query.ClusterLoadInformation>
Public Function GetClusterLoadInformationAsync (timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ClusterLoadInformation)

参数

timeout
TimeSpan

指定此操作在超时之前必须完成的持续时间。

cancellationToken
CancellationToken

传播有关应取消操作的通知。

返回

表示异步查询操作的任务。

返回的任务将群集的负载信息作为 ClusterLoadInformation包含。

例外

适用于