Share via


IServicePartition Interface

Definition

Provides information to the service about the partition to which it belongs and provides methods for the service to interact with the system during runtime.

public interface IServicePartition
type IServicePartition = interface
Public Interface IServicePartition
Derived

Properties

PartitionInfo

Provides access to the ServicePartitionInformation of the service, which contains the partition type and ID.

Methods

ReportFault(FaultType)

Enables the replica to report a fault to the runtime and indicates that it has encountered an error from which it cannot recover and must either be restarted or removed.

ReportLoad(IEnumerable<LoadMetric>)

Reports the load for a set of load balancing metrics. The load can be reported at any time via the ReportLoad(IEnumerable<LoadMetric>) method and provides one or more properties of the LoadMetric method.

ReportMoveCost(MoveCost)

Reports the move cost for a replica.

ReportPartitionHealth(HealthInformation, HealthReportSendOptions)

Reports current partition health.

ReportPartitionHealth(HealthInformation)

Reports current partition health.

Applies to