ReplicaKeyMap Class
Represents a mapping between replica keys and replica IDs.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
The ReplicaKeyMap type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ReplicaKeyMap(SerializationInfo, StreamingContext) | Initializes a new instance of the ReplicaKeyMap class by using serialized data. |
![]() | ReplicaKeyMap(SyncIdFormatGroup, SyncId) | Initializes a new instance of the ReplicaKeyMap class by using the specified ID format schema and associated replica ID. |
| Name | Description | |
|---|---|---|
![]() ![]() | Deserialize | Creates a new ReplicaKeyMap object and initializes it by using serialized data. |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | FindOrAddReplicaKey | Adds entries to or finds entries in the replica key map. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetObjectData | Serializes the replica key map data to a specified SerializationInfo object. |
![]() | GetType | (Inherited from Object.) |
![]() | LookupReplicaId | Gets the replica ID that corresponds to the specified replica key. |
![]() | LookupReplicaKey | Gets the replica key that corresponds to the specified replica ID. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Serialize | Serializes the replica key map data to a byte array. |
![]() | ToString | (Inherited from Object.) |
Replica IDs repeatedly occur in the metadata for a replica and are suggested to be 16-byte GUIDs. Because of this, it is more efficient to represent replica IDs by using a map between replica IDs to 4-byte replica keys. Replica keys are then used where references to particular replicas are required.
Show:
