PartitionSelector Class
This is a helper class for selecting partitions.
Namespace: System.Fabric.Testability
Assembly: System.Fabric.Testability (in System.Fabric.Testability.dll)
Inheritance Hierarchy
System.Object
System.Fabric.Testability.PartitionSelector
Syntax
public class PartitionSelector
Methods
Name | Description | |
---|---|---|
Equals(Object) | Compares whether two PartitionSelectors are the same. (Overrides Object.Equals(Object).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | Calls the base GetHashCode() (Overrides Object.GetHashCode().) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
PartitionIdOf(Uri, Guid) | Selects a partition for the service given the PartitionId. |
|
PartitionKeyOf(Uri, Int64) | Selects a partition for the service to which the specified partition key belongs. |
|
PartitionKeyOf(Uri, String) | Selects a partition for the service with the specified PartitionName. |
|
RandomOf(Uri) | Selects a random partition for given service. |
|
SingletonOf(Uri) | Selects the singleton partition for a service. |
|
ToString() | String representation of the partition selector. (Overrides Object.ToString().) |
Remarks
It allows the user to select partitions to be targeted by the testability APIs. The selection can be a particular partition of a service based on the Id or Key or a random partition of a service.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Fabric.Testability Namespace
Return to top