ReplicaSelector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is a helper class for selecting replicas.
[System.Serializable]
public class ReplicaSelector
[<System.Serializable>]
type ReplicaSelector = class
Public Class ReplicaSelector
- Inheritance
-
ReplicaSelector
- Attributes
Remarks
It allows the user to select replicas to be targeted by the testability APIs. The selection can be a particular replica of a partition based on the ReplicaId or Role or a random replica of the partition.
Properties
PartitionSelector |
The PartitionSelector specifying the partition for which the replica is being selected by the ReplicaSelector. |
Methods
Equals(Object) |
Compares whether two ReplicaSelectors are the same. |
GetHashCode() |
Calls the base GetHashCode() |
PrimaryOf(PartitionSelector) |
Selects the primary replica for the given partition specified by the PartitionSelector. |
RandomOf(PartitionSelector) |
Selects a random replica for the given partition specified by the PartitionSelector. |
RandomSecondaryOf(PartitionSelector) |
Selects a random secondary replica for the given partition specified by the PartitionSelector. |
ReplicaIdOf(PartitionSelector, Int64) |
Selects a replica based on the ReplicaId for the given partition specified by the PartitionSelector. |
ToString() |
String representation of the replica selector. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기