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

IServicePartition 接口

定义

向服务提供有关其所属分区的信息,并为服务提供在运行时与系统交互的方法。

public interface IServicePartition
type IServicePartition = interface
Public Interface IServicePartition
派生

属性

PartitionInfo

提供对 ServicePartitionInformation 包含分区类型和 ID 的服务的访问。

方法

ReportFault(FaultType)

使副本 (replica) 向运行时报告错误,并指示它遇到了无法恢复的错误,必须重新启动或删除错误。

ReportLoad(IEnumerable<LoadMetric>)

报告一组负载均衡指标的负载。 可以随时通过 方法报告负载, ReportLoad(IEnumerable<LoadMetric>) 并提供 方法的 LoadMetric 一个或多个属性。

ReportMoveCost(MoveCost)

报告副本 (replica) 的移动成本。

ReportPartitionHealth(HealthInformation)

报告当前分区运行状况。

ReportPartitionHealth(HealthInformation, HealthReportSendOptions)

报告当前分区运行状况。

适用于