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
System_CAPS_pubmethod Equals(Object)

Compares whether two PartitionSelectors are the same. (Overrides Object.Equals(Object).)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Calls the base GetHashCode() (Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_static PartitionIdOf(Uri, Guid)

Selects a partition for the service given the PartitionId.

System_CAPS_pubmethodSystem_CAPS_static PartitionKeyOf(Uri, Int64)

Selects a partition for the service to which the specified partition key belongs.

System_CAPS_pubmethodSystem_CAPS_static PartitionKeyOf(Uri, String)

Selects a partition for the service with the specified PartitionName.

System_CAPS_pubmethodSystem_CAPS_static RandomOf(Uri)

Selects a random partition for given service.

System_CAPS_pubmethodSystem_CAPS_static SingletonOf(Uri)

Selects the singleton partition for a service.

System_CAPS_pubmethod 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